From ca31baa0658ea3c59fc056af6a53c666b2d7cba3 Mon Sep 17 00:00:00 2001 From: th3r00t Date: Fri, 12 Sep 2025 12:00:57 -0400 Subject: [PATCH] Adjusting COC --- lua/keymaps.lua | 2 +- lua/utils/t3_functions.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/keymaps.lua b/lua/keymaps.lua index 5b058fd..21777fa 100644 --- a/lua/keymaps.lua +++ b/lua/keymaps.lua @@ -133,7 +133,7 @@ vim.api.nvim_create_autocmd("FileType", { -- COC Keybindings -vim.keymap.set( "n", "K", ":call ShowDocumentation()", { 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", "l", "", {desc = "LSP" }) vim.keymap.set( "n", "lc", "", {desc = "Completions" }) vim.keymap.set( "n", "lch", "CocCommand document.toggleInlayHint", {desc = "Toggle Inline Hints" }) diff --git a/lua/utils/t3_functions.lua b/lua/utils/t3_functions.lua index 32eab66..ec91384 100644 --- a/lua/utils/t3_functions.lua +++ b/lua/utils/t3_functions.lua @@ -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