Comments (5)
Can confirm that your fix works. can you make a PR?
from neovim.
neovim/runtime/lua/vim/treesitter/_fold.lua
Line 285 in 47dbda9
in all other places the logic checks if self.foldupdate_range
first.
from neovim.
Can redproduce. My intention with do_foldupdate
not checking if self.foldupdate_range
was that this function is called after foldupdate_range
set by foldupdate
. But it seems there is an interesting interaction between foldupdate
's InsertLeave
autocmd and this issues's InsertChaPre
. I'll investigate.
from neovim.
If
neovim/runtime/lua/vim/treesitter/_fold.lua
Line 261 in 47dbda9
is changed to
if api.nvim_get_mode().mode:match('^i') then
the error goes away
from neovim.
From :help mode()
i Insert ic Insert mode completion |compl-generic| ix Insert mode |i_CTRL-X| completion
from neovim.
Related Issues (20)
- filetype.lua scripts.vim is sourced before the scripts in the ftdetect directory HOT 2
- calling user commands with `'<,'>` range will change cursor to line1, 0 HOT 1
- normal mode "r" not indicated by ModeChanged, mode() HOT 1
- The issue #29271 should be closed. HOT 1
- Injections are not properly parsed with `smoothscroll` and `spell` enabled HOT 7
- Failed to source nvim-treesitter.lua HOT 6
- repeat.txt: packadd explanation is strange to me at my first sight HOT 1
- Call `vim.lsp.util.jump_to_location` to jump to an unloaded buffer, where the buffer name is not shortened HOT 3
- Extra spacing around LSP Hover Buffer HOT 1
- `statuscolumn` shows room for line numbers but no actual line numbers HOT 8
- Vim colorscheme doesn't restore the old behavior HOT 2
- vim.filetype.add: user extensions can't override builtin patterns HOT 9
- Broken (un-linked) colors HOT 2
- Issue with treesitter + neovim + markdown. HOT 1
- Updating nvim to latest version breaks theme and fonts. HOT 2
- vim.system zombie process HOT 4
- Undo leads to markdown highlight failure. HOT 1
- Crash when adding extmark in decor provider
- Update the Danish spellfile HOT 1
- Perl syntax highlighting very slow in 0.10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neovim.