From 3c238894c5b6f15c5f27cea8bd3785eb0f1ebf0f Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 18 Sep 2022 11:39:25 +0200 Subject: add config --- lua/autocommands/coc.lua | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 lua/autocommands/coc.lua (limited to 'lua/autocommands/coc.lua') diff --git a/lua/autocommands/coc.lua b/lua/autocommands/coc.lua new file mode 100644 index 0000000..965cca2 --- /dev/null +++ b/lua/autocommands/coc.lua @@ -0,0 +1,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')"}}) + -- cgit v1.2.3-18-g5258