Update nvf

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2025-09-03 07:53:08 +00:00
parent 20b38b0467
commit cf0d77b4d9

View File

@@ -1,5 +1,10 @@
{ user, home }: { user, home }:
{ inputs, ... }: {
inputs,
lib,
pkgs,
...
}:
{ {
environment.persistence = { environment.persistence = {
"/persist/state"."${home}/.local/share/nvf" = { }; "/persist/state"."${home}/.local/share/nvf" = { };
@@ -21,13 +26,12 @@
viAlias = true; viAlias = true;
vimAlias = true; vimAlias = true;
# autocomplete = { autocomplete = {
# blink-cmp.enable = true; blink-cmp.enable = true;
# enableSharedCmpSources = true; };
# };
binds = { binds = {
hardtime-nvim.enable = true; # hardtime-nvim.enable = true;
whichKey.enable = true; whichKey.enable = true;
}; };
@@ -51,10 +55,11 @@
setupOpts = { setupOpts = {
git_status_async = true; git_status_async = true;
filesystem = { window.mappings = lib.generators.mkLuaInline ''
position = "current"; {
hijack_netrw_behavior = "open_current"; ["<space>"] = "noop",
}; }
'';
}; };
}; };
}; };
@@ -89,6 +94,15 @@
nix = { nix = {
enable = true; enable = true;
format.type = "nixfmt"; format.type = "nixfmt";
lsp.options.nil = {
nix = {
maxMemoryMB = null;
flake = {
autoArchive = true;
autoEvalInputs = true;
};
};
};
}; };
php.enable = true; php.enable = true;
python.enable = true; python.enable = true;
@@ -135,7 +149,9 @@
tabline = { tabline = {
nvimBufferline = { nvimBufferline = {
enable = true; enable = true;
mappings.closeCurrent = "<leader>bd";
setupOpts.options = { setupOpts.options = {
indicator.style = "icon";
show_close_icon = false; show_close_icon = false;
show_buffer_close_icons = false; show_buffer_close_icons = false;
}; };
@@ -144,6 +160,15 @@
telescope = { telescope = {
enable = true; enable = true;
setupOpts.defaults.file_ignore_patterns = [
"node_modules"
"%.venv/"
"%.git/"
"dist/"
"build/"
"target/"
"result/"
];
}; };
terminal = { terminal = {
@@ -182,10 +207,9 @@
motion = { motion = {
precognition.enable = true; precognition.enable = true;
}; };
# multicursors.enable = true;
# nvim-biscuits.enable = true; # nvim-biscuits.enable = true;
# smart-splits.enable = true; # smart-splits.enable = true;
# surround.enable = true; surround.enable = true;
# undotree.enable = true; # undotree.enable = true;
# yazi-nvim.enable = true; # yazi-nvim.enable = true;
}; };
@@ -199,6 +223,7 @@
# nvim-scrollbar.enable = true; # nvim-scrollbar.enable = true;
nvim-web-devicons.enable = true; nvim-web-devicons.enable = true;
}; };
keymaps = [ keymaps = [
{ {
mode = [ "n" ]; mode = [ "n" ];
@@ -265,7 +290,10 @@
}; };
}; };
zsh.p10k.extraRightPromptElements = [ "vim_shell" ]; zsh = {
p10k.extraRightPromptElements = [ "vim_shell" ];
shellAliases.v = "nvim";
};
}; };
}; };
} }