summaryrefslogtreecommitdiff
path: root/init.vim
diff options
context:
space:
mode:
authorJosh Rahm <rahm@google.com>2024-07-11 19:15:28 +0000
committerJosh Rahm <rahm@google.com>2024-07-11 19:15:28 +0000
commit6e40aca53f746d0fdc075dcd62e504e56138c06b (patch)
tree91509862ae95c8450e31b1eba8f44788de572097 /init.vim
parenta815f31519cbdd47b559485ba2a72072166759ab (diff)
downloadconfig.vim-6e40aca53f746d0fdc075dcd62e504e56138c06b.tar.gz
config.vim-6e40aca53f746d0fdc075dcd62e504e56138c06b.tar.bz2
config.vim-6e40aca53f746d0fdc075dcd62e504e56138c06b.zip
Do document highlighting only for file types which lsps support it
Diffstat (limited to 'init.vim')
-rw-r--r--init.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/init.vim b/init.vim
index 8126339..65cafff 100644
--- a/init.vim
+++ b/init.vim
@@ -129,9 +129,9 @@ augroup InitVim
autocmd TextYankPost *
\ lua require'vim.highlight'.on_yank(
\ { higroup = "IncSearch", timeout = 100 });
- autocmd CursorHold * lua vim.lsp.buf.document_highlight()
- autocmd CursorHoldI * lua vim.lsp.buf.document_highlight()
- autocmd CursorMoved * lua vim.lsp.buf.clear_references()
+ " autocmd CursorHold * lua vim.lsp.buf.document_highlight()
+ " autocmd CursorHoldI * lua vim.lsp.buf.document_highlight()
+ " autocmd CursorMoved * lua vim.lsp.buf.clear_references()
augroup END
" Local configuration that can be set by hostname or just a local configuration.