diff options
| author | Xiao Pan <xyz@flylightning.xyz> | 2026-05-01 23:58:57 +0800 |
|---|---|---|
| committer | Xiao Pan <xyz@flylightning.xyz> | 2026-05-03 01:58:42 +0800 |
| commit | 6207fe943a8cf6e66e98b4995e8937548f9e9044 (patch) | |
| tree | b4d9de151f890f9be3cb8ddf0a4111447b0b3c12 /home | |
| parent | b6540c72d726e9940337327b43ca3fbf05371822 (diff) | |
nvim workaround .md high CPU usage
neovim high CPU usage when editing markdown file with many lines, e.g.,
more than 100 lines, can be workarounded with :lua vim.treesitter.stop()
https://github.com/neovim/neovim/discussions/39277
Diffstat (limited to 'home')
| -rw-r--r-- | home/xyz/.config/nvim/init.vim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/home/xyz/.config/nvim/init.vim b/home/xyz/.config/nvim/init.vim index c9ca3770..6e0e07e3 100644 --- a/home/xyz/.config/nvim/init.vim +++ b/home/xyz/.config/nvim/init.vim @@ -114,6 +114,11 @@ augroup mycmd if has('nvim') autocmd! nvim.swapfile autocmd SwapExists * let v:swapchoice = 'o' + " neovim high CPU usage when editing markdown file with many lines, + " e.g., more than 100 lines, can be workarounded with :lua + " vim.treesitter.stop() + " https://github.com/neovim/neovim/discussions/39277 + autocmd FileType markdown lua vim.treesitter.stop() endif augroup END |
