mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-12-19 09:49:48 +01:00
feat: add fidget.nvim to visual plugins
This commit is contained in:
parent
ea7bd48a22
commit
db7aa94161
4 changed files with 40 additions and 0 deletions
|
@ -47,6 +47,7 @@ inputs: let
|
|||
scrollBar.enable = true;
|
||||
smoothScroll.enable = true;
|
||||
cellularAutomaton.enable = true;
|
||||
fidget-nvim.enable = true;
|
||||
lspkind.enable = true;
|
||||
indentBlankline = {
|
||||
enable = true;
|
||||
|
|
|
@ -69,6 +69,7 @@ with lib; let
|
|||
"comment-nvim"
|
||||
"kommentary"
|
||||
"mind-nvim"
|
||||
"fidget-nvim"
|
||||
];
|
||||
# You can either use the name of the plugin or a package.
|
||||
pluginsType = with types; listOf (nullOr (either (enum availablePlugins) package));
|
||||
|
|
|
@ -44,6 +44,11 @@ in {
|
|||
then "cellular-automaton"
|
||||
else null
|
||||
)
|
||||
(
|
||||
if cfg.fidget-nvim.enable
|
||||
then "fidget-nvim"
|
||||
else null
|
||||
)
|
||||
];
|
||||
|
||||
vim.luaConfigRC.visuals = nvim.dag.entryAnywhere ''
|
||||
|
@ -135,6 +140,18 @@ in {
|
|||
''
|
||||
else ""
|
||||
}
|
||||
${
|
||||
if cfg.fidget-nvim.enable
|
||||
then ''
|
||||
require"fidget".setup{
|
||||
align = {
|
||||
bottom = ${boolToString cfg.fidget-nvim.align.bottom},
|
||||
right = ${boolToString cfg.fidget-nvim.align.right},
|
||||
}
|
||||
}
|
||||
''
|
||||
else ""
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
@ -45,6 +45,27 @@ in {
|
|||
default = false;
|
||||
};
|
||||
|
||||
fidget-nvim = {
|
||||
enable = mkOption {
|
||||
type = types.bool;
|
||||
description = "enable nvim LSP UI element [fidget-nvim]";
|
||||
default = false;
|
||||
};
|
||||
align = {
|
||||
bottom = mkOption {
|
||||
type = types.bool;
|
||||
description = "align to bottom";
|
||||
default = true;
|
||||
};
|
||||
|
||||
right = mkOption {
|
||||
type = types.bool;
|
||||
description = "align to right";
|
||||
default = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
cursorWordline = {
|
||||
enable = mkOption {
|
||||
type = types.bool;
|
||||
|
|
Loading…
Reference in a new issue