feat: add nvf and switch over to it

This commit is contained in:
Mohammad Rafiq 2025-03-11 22:01:08 +08:00
parent 5332c0d278
commit 92cd756cff
4 changed files with 257 additions and 11 deletions

View file

@ -0,0 +1,47 @@
{ 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;
}
];
};
};
}