feat: add fidget.nvim to visual plugins

This commit is contained in:
NotAShelf 2023-02-28 13:00:38 +03:00
parent ea7bd48a22
commit db7aa94161
No known key found for this signature in database
GPG key ID: 5B5C8895F28445F1
4 changed files with 40 additions and 0 deletions

View file

@ -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;

View file

@ -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));

View file

@ -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 ""
}
'';
};
}

View file

@ -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;