diff --git a/home-manager/common/software/cli/nixvim.nix b/home-manager/common/software/cli/nixvim.nix index 91bda5c3..6105b694 100644 --- a/home-manager/common/software/cli/nixvim.nix +++ b/home-manager/common/software/cli/nixvim.nix @@ -54,8 +54,6 @@ # Fugitive (nmap "gc" ":Git commit -a" // desc "[C]ommit" ) (nmap "gp" ":Git push" // desc "[P]ush") - # LSP - (nmap "lh" "vim.lsp.buf.hover()" // desc "LSP [H]over") ]; options = { @@ -154,6 +152,18 @@ cssls.enable = true; bashls.enable = true; }; + keymaps = { + silent = true; + diagnostic = { + "k" = "goto_prev"; + "j" = "goto_next"; + }; + + lspBuf = { + gd = "definition"; + K = "hover"; + }; + }; }; nvim-cmp = {