diff --git a/plugins/indent-blankline.nix b/plugins/indent-blankline.nix new file mode 100644 index 0000000..a4351ad --- /dev/null +++ b/plugins/indent-blankline.nix @@ -0,0 +1,41 @@ +# homepage: https://github.com/lukas-reineke/indent-blankline.nvim +# nixvim doc: https://nix-community.github.io/nixvim/plugins/indent-blankline/index.html +_: + +{ + # Enable catppuccin colors + # https://github.com/catppuccin/nvim/blob/main/lua/catppuccin/groups/integrations/indent_blankline.lua + rootOpts.colorschemes.catppuccin.settings.integrations.indent_blankline = true; + + # https://github.com/AstroNvim/AstroNvim/blob/v4.7.7/lua/astronvim/plugins/indent-blankline.lua#L15-L41 + opts = { + enable = true; + + settings = { + indent.char = "▏"; + + # Disable scope highlighting + scope.enabled = false; + + exclude.filetypes = [ + "aerial" + "alpha" + "dashboard" + "lazy" + "mason" + "neo-tree" + "NvimTree" + "neogitstatus" + "notify" + "startify" + "toggleterm" + "Trouble" + ]; + + scope = { + show_start = false; + show_end = false; + }; + }; + }; +}