diff --git a/modules/visuals/visuals.nix b/modules/visuals/visuals.nix index 7008c68..456e0b8 100644 --- a/modules/visuals/visuals.nix +++ b/modules/visuals/visuals.nix @@ -24,6 +24,11 @@ in { description = "enable vscode-like pictograms for lsp [lspkind]"; }; + scrollBar.enable = mkOption { + type = types.bool; + description = "enable scrollbar [scrollbar.nvim]"; + }; + cursorWordline = { enable = mkOption { type = types.bool; @@ -88,6 +93,11 @@ in { then "indent-blankline" else null ) + ( + if cfg.scrollBar.enable + then "scrollbar-nvim" + else null + ) ]; vim.luaConfigRC.visuals = nvim.dag.entryAnywhere '' @@ -130,6 +140,20 @@ in { then "vim.g.cursorline_timeout = ${toString cfg.cursorWordline.lineTimeout}" else "" } + + ${ + if cfg.scrollBar.enable + then "require('scrollbar').setup{ + excluded_filetypes = { + 'prompt', + 'TelescopePrompt', + 'noice', + 'NvimTree', + 'alpha' + }, + }" + else "" + } ''; }; }