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.
This commit is contained in:
Sanchayan Maity 2021-11-18 17:15:30 +05:30
parent 71fae03c07
commit 8733194431

View file

@ -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", "<cmd>lua vim.lsp.codelens.run()<CR>", opts)
vim.api.nvim_buf_set_keymap(bufnr, "n", "<Leader>l", "<cmd>lua vim.lsp.codelens.run()<CR>", opts)
vim.api.nvim_command [[autocmd CursorHold,CursorHoldI,InsertLeave <buffer> lua vim.lsp.codelens.refresh()]]
end