mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 18:55:14 -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 }
|
self.foldupdate_range = { srow, erow }
|
||||||
end
|
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
|
-- foldUpdate() is guarded in insert mode. So update folds on InsertLeave
|
||||||
if #(api.nvim_get_autocmds({
|
if #(api.nvim_get_autocmds({
|
||||||
group = group,
|
group = group,
|
||||||
|
Loading…
Reference in New Issue
Block a user