mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 10:45:16 -07:00
fix(treesitter.foldexpr): check for all insert submodes
This commit is contained in:
parent
37d8e50459
commit
c5b9fb2f25
@ -258,7 +258,7 @@ function FoldInfo:foldupdate(bufnr, srow, erow)
|
||||
self.foldupdate_range = { srow, erow }
|
||||
end
|
||||
|
||||
if api.nvim_get_mode().mode == 'i' then
|
||||
if api.nvim_get_mode().mode:match('^i') then
|
||||
-- foldUpdate() is guarded in insert mode. So update folds on InsertLeave
|
||||
if #(api.nvim_get_autocmds({
|
||||
group = group,
|
||||
|
Loading…
Reference in New Issue
Block a user