From 606539168d313d57e74ede3927ed998f472892ff Mon Sep 17 00:00:00 2001
From: iFargle <albert@sysctl.io>
Date: Tue, 13 Feb 2024 14:59:40 +0900
Subject: [PATCH] Update key mappings

---
 home-manager/common/software/cli/nixvim.nix | 30 ++++++++++++---------
 1 file changed, 18 insertions(+), 12 deletions(-)

diff --git a/home-manager/common/software/cli/nixvim.nix b/home-manager/common/software/cli/nixvim.nix
index b8d65d79..d6b11242 100644
--- a/home-manager/common/software/cli/nixvim.nix
+++ b/home-manager/common/software/cli/nixvim.nix
@@ -167,8 +167,14 @@
                 keymaps = {
                     silent = true;
                     diagnostic = {
-                        "<leader>lk" = "goto_prev";
-                        "<leader>lj" = "goto_next";
+                        "<leader>lk" = {
+                            action = "goto_prev";
+                            desc = "Go to prev";
+                        };
+                        "<leader>lj" = {
+                            action = "goto_next";
+                            desc = "Go to next"; 
+                        };
                     };
 
                     lspBuf = {
@@ -177,24 +183,24 @@
                             desc = "Hover";
                         };
                         "<leader>lr" = {
-                          action = "references";
-                          desc = "LSP [r]eferences";  
+                            action = "references";
+                            desc = "LSP [r]eferences";  
                         };
                         "<leader>ld" = {
-                          action = "definition";
-                          desc = "LSP [d]efinitions";  
+                            action = "definition";
+                            desc = "LSP [d]efinitions";  
                         };
                         "<leader>li" = {
-                          action = "implementation";
-                          desc = "LSP [i]implementations";  
+                            action = "implementation";
+                            desc = "LSP [i]implementations";  
                         };
                         "<leader>lt" = {
-                          action = "type_definition";
-                          desc = "LSP [t]ype definitions";  
+                            action = "type_definition";
+                            desc = "LSP [t]ype definitions";  
                         };
                         "<leader>la" = {
-                          action = "code_action";
-                          desc = "LSP Code [A]ctions";  
+                            action = "code_action";
+                            desc = "LSP Code [A]ctions";  
                         };
                     };
                 };