neovim-flake/modules/visuals/visuals.nix

112 lines
2.6 KiB
Nix
Raw Normal View History

{
config,
lib,
...
}:
with lib;
2023-03-31 04:20:35 +02:00
with builtins; {
options.vim.visuals = {
enable = mkOption {
type = types.bool;
description = "visual enhancements";
default = false;
};
nvimWebDevicons.enable = mkOption {
type = types.bool;
description = "enable dev icons. required for certain plugins [nvim-web-devicons]";
default = false;
};
lspkind.enable = mkOption {
type = types.bool;
description = "enable vscode-like pictograms for lsp [lspkind]";
default = false;
};
2023-02-03 20:53:38 +01:00
scrollBar.enable = mkOption {
type = types.bool;
description = "enable scrollbar [scrollbar.nvim]";
default = false;
2023-02-03 20:53:38 +01:00
};
smoothScroll.enable = mkOption {
type = types.bool;
description = "enable smooth scrolling [cinnamon-nvim]";
default = false;
};
cellularAutomaton.enable = mkOption {
type = types.bool;
description = "enable cellular automaton [cellular-automaton]";
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;
description = "enable word and delayed line highlight [nvim-cursorline]";
default = false;
};
lineTimeout = mkOption {
type = types.int;
description = "time in milliseconds for cursorline to appear";
};
};
indentBlankline = {
enable = mkOption {
type = types.bool;
description = "enable indentation guides [indent-blankline]";
default = false;
};
listChar = mkOption {
type = types.str;
description = "Character for indentation line";
default = "";
};
fillChar = mkOption {
type = types.str;
description = "Character to fill indents";
default = "";
};
eolChar = mkOption {
type = types.str;
description = "Character at end of line";
default = "";
};
showCurrContext = mkOption {
type = types.bool;
description = "Highlight current context from treesitter";
default = true;
};
};
};
}