From 190bdab715e53ee16a91f311c344cb56012d7f0d Mon Sep 17 00:00:00 2001 From: Proctor Date: Mon, 23 Aug 2021 14:41:09 -0500 Subject: [PATCH] Clojure LSP Client Mappings --- .../nvim/fnl/dotfiles/plugin/lspconfig.fnl | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/nvim/.config/nvim/fnl/dotfiles/plugin/lspconfig.fnl b/nvim/.config/nvim/fnl/dotfiles/plugin/lspconfig.fnl index 003e922..efbef5e 100644 --- a/nvim/.config/nvim/fnl/dotfiles/plugin/lspconfig.fnl +++ b/nvim/.config/nvim/fnl/dotfiles/plugin/lspconfig.fnl @@ -43,8 +43,7 @@ args [buf-uri r c] ] (vim.lsp.buf.execute_command {:command cmd - :arguments (a.merge args ...)}) - )) + :arguments (a.merge args ...)}))) (nu.fn-bridge :LspExecuteCommand :dotfiles.plugin.lspconfig :lsp-execute-command {:return false}) @@ -71,16 +70,11 @@ (def client-nmappings {:clojure { -; -- buf_set_keymap('n', 'cn', "lua LspExecuteCommand('clean-ns')", opts) -; -- buf_set_keymap('n', 'cn', "lua LspExecuteCommand('clean-ns')", opts) -; -- buf_set_keymap('n', 'ref', "lua LspExecuteCommand('extract-function', vim.api.nvim_eval(\"input('Function name: ')\"))", opts) -; -- buf_set_keymap('x', 'ref', "lua LspExecuteCommand('extract-function', vim.api.nvim_eval(\"input('Function name: ')\"))", opts) -; -- buf_set_keymap('n', 'id', "lua LspExecuteCommand('inline-symbol')", opts) -; -- buf_set_keymap('x', 'id', "lua LspExecuteCommand('inline-symbol')", opts) -; -- buf_set_keymap('n', 'il', "lua LspExecuteCommand('introduce-let', vim.api.nvim_eval(\"input('Binding name: ')\"))", opts) -; -- buf_set_keymap('x', 'il', "lua LspExecuteCommand('introduce-let', vim.api.nvim_eval(\"input('Binding name: ')\"))", opts) -; -- buf_set_keymap('n', 'm2l', "lua LspExecuteCommand('move-to-let', vim.api.nvim_eval(\"input('Binding name: ')\"))", opts) -; -- buf_set_keymap('x', 'm2l', "lua LspExecuteCommand('move-to-let', vim.api.nvim_eval(\"input('Binding name: ')\"))", opts) + :cn "lua LspExecuteCommand('clean-ns)'" + :ref "lua LspExecuteCommand('extract-function', vim.api.nvim_eval(\"input('Function name: ')\"))'" + :id "lua LspExecuteCommand('clean-ns)'" + :il "lua LspExecuteCommand('introduce-let', vim.api.nvim_eval(\"input('Binding name: ')\"))'" + :m2l "lua LspExecuteCommand('move-to-let', vim.api.nvim_eval(\"input('Binding name: ')\"))'" } })