From 8fbcfc8698f97fc4701d09cb3de3e095d5ddd7c7 Mon Sep 17 00:00:00 2001 From: Soispha Date: Sun, 8 Oct 2023 13:12:44 +0200 Subject: fix(hm/conf/nvim): Update to new keymap format --- hm/soispha/conf/nvim/plgs/lsp/keymaps/default.nix | 36 +++++++++++------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'hm/soispha/conf/nvim/plgs/lsp') 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 = { - "f" = { - action = "function() vim.lsp.buf.format { async = true } end"; - lua = true; - desc = "[F]ormat the current buffer (asynchronously)"; - }; - "wl" = { - action = '' - function() - print(vim.inspect(vim.lsp.buf.list_workspace_folders())) - end - ''; - lua = true; - desc = "[W]orkspace folders [l]ist"; - }; - }; - }; + keymaps = [ + { + key = "f"; + action = "function() vim.lsp.buf.format { async = true } end"; + lua = true; + options.desc = "[F]ormat the current buffer (asynchronously)"; + } + { + key = "wl"; + action = '' + function() + print(vim.inspect(vim.lsp.buf.list_workspace_folders())) + end + ''; + lua = true; + options.desc = "[W]orkspace folders [l]ist"; + } + ]; }; } -- cgit 1.4.1