summaryrefslogtreecommitdiff
path: root/lua/autocommands/coc.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/autocommands/coc.lua')
-rw-r--r--lua/autocommands/coc.lua9
1 files changed, 9 insertions, 0 deletions
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')"}})
+