mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-12-19 04:09:48 +01:00
feat: add scrollbar visual
This commit is contained in:
parent
7e69203390
commit
5d02e5d2e3
1 changed files with 24 additions and 0 deletions
|
@ -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 ""
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue