From 1b277cf39048aa90f446abf429cf294c7f9913bb Mon Sep 17 00:00:00 2001 From: iFargle Date: Tue, 13 Feb 2024 14:19:41 +0900 Subject: [PATCH] test --- home-manager/common/software/cli/nixvim.nix | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) 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 = {