From 8733194431798b26970ed0cfb7f6d10028024c43 Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Thu, 18 Nov 2021 17:15:30 +0530 Subject: [PATCH] nvim: lsp: Update the key mapping for code lens We missed the fact that this conflicts with our gl mapping of HopLine which we added recently. --- nvim/.config/nvim/lua/lsp.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvim/.config/nvim/lua/lsp.lua b/nvim/.config/nvim/lua/lsp.lua index a0a8bc5..f60883e 100644 --- a/nvim/.config/nvim/lua/lsp.lua +++ b/nvim/.config/nvim/lua/lsp.lua @@ -128,7 +128,7 @@ local on_attach = function(client, bufnr) end if client.resolved_capabilities.code_lens then - vim.api.nvim_buf_set_keymap(bufnr, "n", "gl", "lua vim.lsp.codelens.run()", opts) + vim.api.nvim_buf_set_keymap(bufnr, "n", "l", "lua vim.lsp.codelens.run()", opts) vim.api.nvim_command [[autocmd CursorHold,CursorHoldI,InsertLeave lua vim.lsp.codelens.refresh()]] end