feat: effectively finish nvf as ide #10

This commit is contained in:
Mohammad Rafiq 2025-03-13 23:51:47 +08:00
parent ab4113b74d
commit 3f82161bae
16 changed files with 564 additions and 53 deletions

View file

@ -1,58 +1,26 @@
{inputs, ...}: {
imports = [
inputs.nvf.homeManagerModules.default
./nvf/blink-cmp.nix
./nvf/conform-nvim.nix
./nvf/languages/nix.nix
./nvf/lualine.nix
./nvf/noice.nix
./nvf/options.nix
./nvf/keymaps.nix
./nvf/lsp.nix
./nvf/debugger.nix
./nvf/languages.nix
./nvf/visual.nix
./nvf/input.nix
./nvf/filetree.nix
./nvf/search.nix
./nvf/utilities.nix
./nvf/notes.nix
];
home.sessionVariables.EDITOR = "nvim";
programs.nvf = {
enable = true;
enableManpages = 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;
};
viAlias = true;
vimAlias = true;
spellcheck.enable = true;
};
};
}