From 20ebd6fc5f5934eba079fb5e4e2ffc4c3a83d77e Mon Sep 17 00:00:00 2001 From: Nikolaos Karaolidis Date: Wed, 3 Sep 2025 07:49:05 +0100 Subject: [PATCH] Update nvf Signed-off-by: Nikolaos Karaolidis --- .../configs/user/console/neovim/default.nix | 31 +++++++++++-------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/hosts/common/configs/user/console/neovim/default.nix b/hosts/common/configs/user/console/neovim/default.nix index ca4e988..308ad6c 100644 --- a/hosts/common/configs/user/console/neovim/default.nix +++ b/hosts/common/configs/user/console/neovim/default.nix @@ -1,5 +1,5 @@ { user, home }: -{ inputs, ... }: +{ inputs, lib, ... }: { environment.persistence = { "/persist/state"."${home}/.local/share/nvf" = { }; @@ -21,13 +21,12 @@ viAlias = true; vimAlias = true; - # autocomplete = { - # blink-cmp.enable = true; - # enableSharedCmpSources = true; - # }; + autocomplete = { + blink-cmp.enable = true; + }; binds = { - hardtime-nvim.enable = true; + # hardtime-nvim.enable = true; whichKey.enable = true; }; @@ -51,10 +50,11 @@ setupOpts = { git_status_async = true; - filesystem = { - position = "current"; - hijack_netrw_behavior = "open_current"; - }; + window.mappings = lib.generators.mkLuaInline '' + { + [""] = "noop", + } + ''; }; }; }; @@ -135,7 +135,9 @@ tabline = { nvimBufferline = { enable = true; + mappings.closeCurrent = "bd"; setupOpts.options = { + indicator.style = "icon"; show_close_icon = false; show_buffer_close_icons = false; }; @@ -182,10 +184,9 @@ motion = { precognition.enable = true; }; - # multicursors.enable = true; # nvim-biscuits.enable = true; # smart-splits.enable = true; - # surround.enable = true; + surround.enable = true; # undotree.enable = true; # yazi-nvim.enable = true; }; @@ -199,6 +200,7 @@ # nvim-scrollbar.enable = true; nvim-web-devicons.enable = true; }; + keymaps = [ { mode = [ "n" ]; @@ -265,7 +267,10 @@ }; }; - zsh.p10k.extraRightPromptElements = [ "vim_shell" ]; + zsh = { + p10k.extraRightPromptElements = [ "vim_shell" ]; + shellAliases.v = "nvim"; + }; }; }; }