Adjusting COC
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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" })
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user