Adjusting COC

This commit is contained in:
2025-09-12 11:53:08 -04:00
parent bc458aec5a
commit bc9cb89e8f
3 changed files with 10 additions and 7 deletions

View File

@@ -157,6 +157,7 @@ function t3_make_ctags()
})
end
vim.api.nvim_create_autocmd("FileType", {
pattern = { "markdown", "norg", "md", "wiki" }, -- Set for markdown file type
callback = function()

View File

@@ -132,13 +132,6 @@ vim.api.nvim_create_autocmd("FileType", {
})
-- COC Keybindings
function ShowDocumentation()
if CocAction("hasProvier", "hover") then
CocActionAsync("doHover")
else
vim.cmd("h " .. vim.bo.filetype)
end
end
vim.keymap.set( "n", "K", ":call ShowDocumentation()<CR>", { noremap = true, silent = true, desc = "Show Documentation" })
vim.keymap.set( "n", "<leader>l", "", {desc = "LSP" })

View File

@@ -185,3 +185,12 @@ vim.api.nvim_create_user_command("Vsplit", function()
vim.cmd("vsplit")
vim.cmd("wincmd l")
end, {})
function ShowDocumentation()
if CocAction("hasProvider", "hover") then
CocActionAsync("doHover")
else
vim.cmd("h " .. vim.bo.filetype)
end
end