refactor(neovim): switch to new vim.keymap.set API

This commit is contained in:
Felix Schröter 2022-05-03 20:40:33 +02:00
parent c95fe27950
commit 050586cfa3
Signed by: felschr
GPG key ID: 671E39E6744C807D
5 changed files with 32 additions and 43 deletions

View file

@ -6,7 +6,7 @@ vim.cmd [[autocmd CursorHold,CursorHoldI * lua require'nvim-lightbulb'.update_li
local on_attach = function(_, bufnr)
-- codelens
vim.api.nvim_command [[autocmd CursorHold,CursorHoldI,InsertLeave <buffer> lua vim.lsp.codelens.refresh()]]
vim.api.nvim_buf_set_keymap(bufnr, "n", "<leader>l", "<Cmd>lua vim.lsp.codelens.run()<CR>", {silent = true;})
vim.keymap.set("n", "<leader>l", vim.lsp.codelens.run, { silent = true, buffer = bufnr })
end
-- format on save