Add comment about matchit with nvim re #176

This commit is contained in:
Andy K. Massimino
2021-09-12 09:43:10 -04:00
parent 909eab5ee9
commit 5a1978e46a
2 changed files with 13 additions and 7 deletions

View File

@@ -10,7 +10,8 @@ Most issues are related to bugs or problems. In these cases, you should
include a minimal working example and a minimal vimrc file (see below), as
well as:
1. What vim version are you using?
1. What vim version are you using? If using neovim, Are you using
tree-sitter or classic matching?
2. Steps to reproduce
3. Expected behavior
4. Observed behavior

View File

@@ -803,12 +803,17 @@ See for instance one of the following plugins for this;
### Matchit
match-up tries to work around matchit.vim in all cases, but if
you experience problems, read the following.
matchit.vim should not be loaded. If it is loaded, it should be loaded
after match-up (in this case, matchit.vim will be disabled). Note that
some plugins, such as
[vim-sensible](https://github.com/tpope/vim-sensible),
load matchit.vim so these should also be initialized after match-up.
you experience problems, read the following:
- For vim, matchit.vim should not be loaded. If it is loaded, it should
be loaded after match-up (in this case, matchit.vim will be disabled).
Note that some plugins, such as
[vim-sensible](https://github.com/tpope/vim-sensible), load matchit.vim
so these should also be initialized after match-up.
- For neovim, matchit.vim is loaded by default. This should not cause any
problems, but you may see a very slight start-up time improvement by
setting `let g:loaded_matchit = 1` in your `init.vim`.
### Matchparen emulation