mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-23 13:50:44 +00:00
121 lines
3.2 KiB
Nix
121 lines
3.2 KiB
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
with lib;
|
|
with builtins; let
|
|
cfg = config.vim.visuals;
|
|
in {
|
|
options.vim.visuals = {
|
|
enable = mkEnableOption "Visual enhancements.";
|
|
|
|
nvimWebDevicons.enable = mkEnableOption "dev icons. Required for certain plugins [nvim-web-devicons].";
|
|
|
|
scrollBar.enable = mkOption {
|
|
type = types.bool;
|
|
description = "Enable scrollbar [scrollbar.nvim]";
|
|
default = false;
|
|
};
|
|
|
|
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;
|
|
};
|
|
|
|
mappings = {
|
|
makeItRain = mkMappingOption "Make it rain [cellular-automaton]" "<leader>fml";
|
|
};
|
|
};
|
|
|
|
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 = mkEnableOption "word and delayed line highlight [nvim-cursorline].";
|
|
|
|
lineTimeout = mkOption {
|
|
type = types.int;
|
|
description = "Time in milliseconds for cursorline to appear";
|
|
default = 500;
|
|
};
|
|
};
|
|
|
|
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 {
|
|
description = "Character to fill indents";
|
|
type = with types; nullOr types.str;
|
|
default = "⋅";
|
|
};
|
|
|
|
eolChar = mkOption {
|
|
description = "Character at end of line";
|
|
type = with types; nullOr types.str;
|
|
default = "↴";
|
|
};
|
|
|
|
showEndOfLine = mkOption {
|
|
description = nvim.nmd.asciiDoc ''
|
|
Displays the end of line character set by <<opt-vim.visuals.indentBlankline.eolChar>> instead of the
|
|
indent guide on line returns.
|
|
'';
|
|
type = types.bool;
|
|
default = cfg.indentBlankline.eolChar != null;
|
|
defaultText = literalExpression "config.vim.visuals.indentBlankline.eolChar != null";
|
|
};
|
|
|
|
showCurrContext = mkOption {
|
|
description = "Highlight current context from treesitter";
|
|
type = types.bool;
|
|
default = config.vim.treesitter.enable;
|
|
defaultText = literalExpression "config.vim.treesitter.enable";
|
|
};
|
|
|
|
useTreesitter = mkOption {
|
|
description = "Use treesitter to calculate indentation when possible.";
|
|
type = types.bool;
|
|
default = config.vim.treesitter.enable;
|
|
defaultText = literalExpression "config.vim.treesitter.enable";
|
|
};
|
|
};
|
|
};
|
|
}
|