From 7ad27d19d24220edd95518cd39b3794415bd9d52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Vitor=20de=20Lima=20Matos?= Date: Wed, 26 Apr 2023 09:11:42 -0300 Subject: [PATCH] lualine: add tests for fixes to theme and disabledFiletypes --- .../test-sources/plugins/statuslines/lualine.nix | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/tests/test-sources/plugins/statuslines/lualine.nix b/tests/test-sources/plugins/statuslines/lualine.nix index 267a31ed..58fe349f 100644 --- a/tests/test-sources/plugins/statuslines/lualine.nix +++ b/tests/test-sources/plugins/statuslines/lualine.nix @@ -1,4 +1,4 @@ -{ +{pkgs}: { empty = { plugins.lualine.enable = true; }; @@ -40,9 +40,20 @@ }; example = { + extraPlugins = [pkgs.vimPlugins.gruvbox-nvim]; plugins.lualine = { enable = true; - ignoreFocus = ["NvimTree"]; + theme.__raw = '' + (function() + local custom_gruvbox = require("lualine.themes.gruvbox") + custom_gruvbox.normal.c.bg = '#112233' + return custom_gruvbox + end)() + ''; + ignoreFocus = ["NvimTree" "neo-tree"]; + disabledFiletypes = { + winbar = ["neo-tree"]; + }; sections = { lualine_c = [ # you can specify only the sections you want to change