summaryrefslogtreecommitdiff
path: root/lua/autocommands/coc.lua
blob: 965cca2534661377268108287a9be4b28b887ec3 (plain)
1
2
3
4
5
6
7
8
9
require("utility.autocmd")

-- Highlight the symbol and its references when holding the cursor.
autocmd("CursorHold", "*", "silent call CocActionAsync('highlight')")

augroup("coc-misc", {
	-- {"FileType", "typescript,json", "setl formatexpr=CocAction('formatSelected')"},
	{"User", "CocJumpPlaceholder", "call CocActionAsync('showSignatureHelp')"}})