Adjusting COC

This commit is contained in:
2025-09-12 12:00:57 -04:00
parent bc9cb89e8f
commit ca31baa065
2 changed files with 2 additions and 2 deletions

View File

@@ -133,7 +133,7 @@ vim.api.nvim_create_autocmd("FileType", {
-- 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>lc", "", {desc = "Completions" })
vim.keymap.set( "n", "<leader>lch", "<cmd>CocCommand document.toggleInlayHint<cr>", {desc = "Toggle Inline Hints" })

View File

@@ -186,7 +186,7 @@ vim.api.nvim_create_user_command("Vsplit", function()
vim.cmd("wincmd l")
end, {})
function ShowDocumentation()
function _G.ShowDocumentation()
if CocAction("hasProvider", "hover") then
CocActionAsync("doHover")
else