Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/antoinemadec/FixCursorHold.nvim
Fix CursorHold Performance.
https://github.com/antoinemadec/FixCursorHold.nvim
fix neovim performance vim
Last synced: about 2 months ago
JSON representation
Fix CursorHold Performance.
- Host: GitHub
- URL: https://github.com/antoinemadec/FixCursorHold.nvim
- Owner: antoinemadec
- License: mit
- Created: 2020-07-13T00:44:52.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-02-13T11:23:07.000Z (over 1 year ago)
- Last Synced: 2024-06-18T11:34:32.448Z (3 months ago)
- Topics: fix, neovim, performance, vim
- Language: Vim Script
- Homepage:
- Size: 12.7 KB
- Stars: 275
- Watchers: 8
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# **❗ This plugin is not needed after https://github.com/neovim/neovim/pull/20198 ❗**
Fix CursorHold Performance
=================================Rationale
---------This plugin exists for two reasons:
1. fix neovim **CursorHold** and **CursorHoldI** autocmd events [performance bug][issue]
2. decouple **updatetime** from **CursorHold** and **CursorHoldI** (works for Vim and Neovim)1., fixes slowdowns and untriggered events
2., you can now use small delays for **CursorHold** without writing the swap file 10x/sec (see :help updatetime)
This will result in more snappiness for plugins using those events, such as:
**coc.nvim**, **vim-gitgutter**, **tagbar**, **vim-devicons**, **vim-polyglot**, etc.Installation
---------Make sure to have the following plugins in your **vimrc**:
```vim
Plug 'antoinemadec/FixCursorHold.nvim'
```
Configuration
---------```vim
" in millisecond, used for both CursorHold and CursorHoldI,
" use updatetime instead if not defined
let g:cursorhold_updatetime = 100
```License
-------MIT
[issue]: https://github.com/neovim/neovim/issues/12587