diff --git a/module.nix b/module.nix index 7f18f87..9c4503b 100644 --- a/module.nix +++ b/module.nix @@ -9,7 +9,7 @@ description = "Enable ai plugins"; }; - enable-startify = lib.mkOption { + enable-startify-cowsay = lib.mkOption { type = lib.types.bool; default = false; description = "Enable startify"; diff --git a/plugins/indent-blankline.nix b/plugins/indent-blankline.nix index 2b085fd..d99dfb3 100644 --- a/plugins/indent-blankline.nix +++ b/plugins/indent-blankline.nix @@ -4,17 +4,6 @@ indent-blankline = { enable = true; luaConfig.post = '' - vim.g.indent_blankline_filetype_exclude = { - 'checkhealth', - 'dashboard', - 'help', - 'lspinfo', - 'neogitstatus', - 'packer', - 'startify', - "", - } - local highlight = { "RainbowRed", "RainbowYellow", @@ -38,7 +27,31 @@ end) vim.g.rainbow_delimiters = { highlight = highlight } - require("ibl").setup { scope = { highlight = highlight } } + + require("ibl").setup({ + scope = { + highlight = highlight + }, + exclude = { + buftypes = { + "terminal", + "quickfix", + "startify", + }, + filetypes = { + "", + "checkhealth", + "help", + "lspinfo", + "neogitstatus", + "packer", + "startify", + "TelescopePrompt", + "TelescopeResults", + "yaml", + }, + }; + }) hooks.register(hooks.type.SCOPE_HIGHLIGHT, hooks.builtin.scope_highlight_from_extmark) ''; diff --git a/plugins/startify.nix b/plugins/startify.nix index f7be3a8..4e297af 100644 --- a/plugins/startify.nix +++ b/plugins/startify.nix @@ -4,7 +4,7 @@ plugins.startify = { enable = true; settings = { - custom_header = if config.nixvim-config.enable-startify then null else [ + custom_header = if config.nixvim-config.enable-startify-cowsay then null else [ ''. _______ ____ ____.___ _____'' ''. \ \ ____ ___\ \ / /| | / \'' ''. / | \_/ __ \/ _ \ Y / | |/ \ / \''