pantheon/users/modules/programs/nvf.nix
2025-03-11 22:01:08 +08:00

47 lines
979 B
Nix

{ inputs, ... }: {
imports = [
inputs.nvf.homeManagerModules.default
];
programs.nvf = {
enable = true;
settings.vim = {
options = {
# Indentation
autoindent = true;
smartindent = true;
expandtab = true;
smarttab = true;
wrap = false;
shiftwidth = 2;
tabstop = 2;
foldlevel = 1000; # Open all folds by default
# Search
hlsearch = true;
ignorecase = true;
incsearch = true;
smartcase = true; # case-sensitive if search contains uppercase
# Visual
number = true;
relativenumber = true;
cursorline = true;
visualbell = true;
termguicolors = true;
# Input
backspace = "indent,eol,start";
};
keymaps = [
{
key = "gf";
mode = "n";
action = ":cd %:p:h<CR>:e <cfile><CR>";
silent = true;
}
];
};
};
}