mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-05 18:01:32 +00: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
|
@ -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…
Add table
Add a link
Reference in a new issue