57 lines
1.2 KiB
Nix
57 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
|
|
./nvf/nvim-tree.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;
|
|
};
|
|
};
|
|
};
|
|
}
|