about summary refs log tree commit diff stats
path: root/hm/soispha/conf/nvim/plgs/lsp
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-10-08 13:12:44 +0200
committerSoispha <soispha@vhack.eu>2023-10-08 13:12:44 +0200
commit8fbcfc8698f97fc4701d09cb3de3e095d5ddd7c7 (patch)
tree90530153a36e969569115c6e06ea17c473826670 /hm/soispha/conf/nvim/plgs/lsp
parentchore(version): v1.15.0 (diff)
downloadnixos-config-8fbcfc8698f97fc4701d09cb3de3e095d5ddd7c7.zip
fix(hm/conf/nvim): Update to new keymap format
Diffstat (limited to '')
-rw-r--r--hm/soispha/conf/nvim/plgs/lsp/keymaps/default.nix36
1 files changed, 18 insertions, 18 deletions
diff --git a/hm/soispha/conf/nvim/plgs/lsp/keymaps/default.nix b/hm/soispha/conf/nvim/plgs/lsp/keymaps/default.nix
index 4017521d..e176461e 100644
--- a/hm/soispha/conf/nvim/plgs/lsp/keymaps/default.nix
+++ b/hm/soispha/conf/nvim/plgs/lsp/keymaps/default.nix
@@ -50,23 +50,23 @@
         };
       };
     };
-    maps = {
-      normal = {
-        "<space>f" = {
-          action = "function() vim.lsp.buf.format { async = true } end";
-          lua = true;
-          desc = "[F]ormat the current buffer (asynchronously)";
-        };
-        "<space>wl" = {
-          action = ''
-            function()
-              print(vim.inspect(vim.lsp.buf.list_workspace_folders()))
-            end
-          '';
-          lua = true;
-          desc = "[W]orkspace folders [l]ist";
-        };
-      };
-    };
+    keymaps = [
+      {
+        key = "<space>f";
+        action = "function() vim.lsp.buf.format { async = true } end";
+        lua = true;
+        options.desc = "[F]ormat the current buffer (asynchronously)";
+      }
+      {
+        key = "<space>wl";
+        action = ''
+          function()
+            print(vim.inspect(vim.lsp.buf.list_workspace_folders()))
+          end
+        '';
+        lua = true;
+        options.desc = "[W]orkspace folders [l]ist";
+      }
+    ];
   };
 }