Change Ctrl-D lsp shortcut to <leader>d

This commit is contained in:
Stephen Seo 2024-02-22 14:19:04 +09:00
parent 7c5e9fd569
commit 8dd5496905

View file

@ -139,7 +139,7 @@ vim.api.nvim_set_keymap("n", "<C-A>", "<cmd>lua vim.lsp.buf.code_action()<CR>",
vim.api.nvim_set_keymap("n", "<C-N>", "<cmd>lua vim.diagnostic.goto_next()<CR>", {noremap = true})
vim.api.nvim_set_keymap("n", "<C-P>", "<cmd>lua vim.diagnostic.goto_prev()<CR>", {noremap = true})
-- Get diagnostic on currently selected
vim.api.nvim_set_keymap("n", "<C-D>", "<cmd>lua vim.diagnostic.open_float()<CR>", {noremap = true})
vim.api.nvim_set_keymap("n", "<leader>d", "<cmd>lua vim.diagnostic.open_float()<CR>", {noremap = true})
EOF