fix(nvim): use proper lsp restart keybind

This commit is contained in:
Price Hiller 2022-09-05 21:10:15 -05:00
parent 1c0a007bac
commit 608d17ecb3

View File

@ -33,10 +33,7 @@ vim.keymap.set("n", "<leader>ll", ":lua print(vim.inspect(vim.lsp.buf.list_works
vim.keymap.set("n", "<leader>ln", ":IncRename ")
vim.keymap.set("n", "<leader>lc", ":CodeActionMenu<CR>")
vim.keymap.set("n", "<leader>lr", ":lua vim.lsp.buf.references()<CR>")
vim.keymap.set("n", "<leader>lR", function()
vim.diagnostic.reset()
vim.cmd(":LspRestart<CR>")
end)
vim.keymap.set("n", "<leader>lR", ":LspRestart<CR>")
vim.keymap.set("n", "<leader>ls", ":lua vim.diagnostic.open_float(nil, {focus=false, scope='cursor'})<CR>")
vim.keymap.set("n", "<leader>lf", ":lua vim.lsp.buf.format({ async = true })<CR>")
vim.keymap.set("n", "[l", ":lua vim.diagnostic.goto_prev()<CR>")