diff --git a/lua/utils/t3_functions.lua b/lua/utils/t3_functions.lua index ec91384..dc303fb 100644 --- a/lua/utils/t3_functions.lua +++ b/lua/utils/t3_functions.lua @@ -187,8 +187,8 @@ vim.api.nvim_create_user_command("Vsplit", function() end, {}) function _G.ShowDocumentation() - if CocAction("hasProvider", "hover") then - CocActionAsync("doHover") + if vim.fn.CocAction("hasProvider", "hover") then + vim.fn.CocActionAsync("doHover") else vim.cmd("h " .. vim.bo.filetype) end