diff options
| author | Josh Rahm <rahm@google.com> | 2024-07-11 19:15:28 +0000 |
|---|---|---|
| committer | Josh Rahm <rahm@google.com> | 2024-07-11 19:15:28 +0000 |
| commit | 6e40aca53f746d0fdc075dcd62e504e56138c06b (patch) | |
| tree | 91509862ae95c8450e31b1eba8f44788de572097 /init.vim | |
| parent | a815f31519cbdd47b559485ba2a72072166759ab (diff) | |
| download | config.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.vim | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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. |