pantheon/users/modules/programs/nvf.nix
2025-03-12 02:00:31 +08:00

56 lines
1.2 KiB
Nix

{inputs, ...}: {
imports = [
inputs.nvf.homeManagerModules.default
./nvf/blink-cmp.nix
./nvf/conform-nvim.nix
./nvf/languages/nix.nix
./nvf/lualine.nix
./nvf/noice.nix
];
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;
}
];
languages = {
enableFormat = true;
enableLSP = true;
enableTreesitter = true;
};
};
};
}