Adjusting COC
This commit is contained in:
@@ -133,7 +133,7 @@ vim.api.nvim_create_autocmd("FileType", {
|
|||||||
|
|
||||||
-- COC Keybindings
|
-- COC Keybindings
|
||||||
|
|
||||||
vim.keymap.set( "n", "K", ":call ShowDocumentation()<CR>", { noremap = true, silent = true, desc = "Show Documentation" })
|
vim.keymap.set( "n", "K", function() _G.ShowDocumentation() end, { noremap = true, silent = true, desc = "Show Documentation" })
|
||||||
vim.keymap.set( "n", "<leader>l", "", {desc = "LSP" })
|
vim.keymap.set( "n", "<leader>l", "", {desc = "LSP" })
|
||||||
vim.keymap.set( "n", "<leader>lc", "", {desc = "Completions" })
|
vim.keymap.set( "n", "<leader>lc", "", {desc = "Completions" })
|
||||||
vim.keymap.set( "n", "<leader>lch", "<cmd>CocCommand document.toggleInlayHint<cr>", {desc = "Toggle Inline Hints" })
|
vim.keymap.set( "n", "<leader>lch", "<cmd>CocCommand document.toggleInlayHint<cr>", {desc = "Toggle Inline Hints" })
|
||||||
|
|||||||
@@ -186,7 +186,7 @@ vim.api.nvim_create_user_command("Vsplit", function()
|
|||||||
vim.cmd("wincmd l")
|
vim.cmd("wincmd l")
|
||||||
end, {})
|
end, {})
|
||||||
|
|
||||||
function ShowDocumentation()
|
function _G.ShowDocumentation()
|
||||||
if CocAction("hasProvider", "hover") then
|
if CocAction("hasProvider", "hover") then
|
||||||
CocActionAsync("doHover")
|
CocActionAsync("doHover")
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user