chore: autogen (vimdocs+formating)
This commit is contained in:
parent
2ac8d77575
commit
e99d733e02
|
@ -337,15 +337,17 @@ local function refresh(opts)
|
||||||
-- https://github.com/nvim-lualine/lualine.nvim/issues/755
|
-- https://github.com/nvim-lualine/lualine.nvim/issues/755
|
||||||
-- https://github.com/neovim/neovim/issues/19472
|
-- https://github.com/neovim/neovim/issues/19472
|
||||||
-- https://github.com/nvim-lualine/lualine.nvim/issues/791
|
-- https://github.com/nvim-lualine/lualine.nvim/issues/791
|
||||||
if opts.trigger == 'autocmd' and
|
if
|
||||||
vim.v.event.new_mode ~= 'c' and
|
opts.trigger == 'autocmd'
|
||||||
|
and vim.v.event.new_mode ~= 'c'
|
||||||
-- scheduling in op-pending mode seems to call the callback forever.
|
-- scheduling in op-pending mode seems to call the callback forever.
|
||||||
-- so this is restricted in op-pending mode.
|
-- so this is restricted in op-pending mode.
|
||||||
-- https://github.com/neovim/neovim/issues/22263
|
-- https://github.com/neovim/neovim/issues/22263
|
||||||
-- https://github.com/nvim-lualine/lualine.nvim/issues/967
|
-- https://github.com/nvim-lualine/lualine.nvim/issues/967
|
||||||
-- note this breaks mode component while switching to op-pending mode
|
-- note this breaks mode component while switching to op-pending mode
|
||||||
not vim.tbl_contains({'no', 'nov', 'noV'}, vim.v.event.new_mode) and
|
and not vim.tbl_contains({ 'no', 'nov', 'noV' }, vim.v.event.new_mode)
|
||||||
not vim.tbl_contains({'no', 'nov', 'noV'}, vim.v.event.old_mode) then
|
and not vim.tbl_contains({ 'no', 'nov', 'noV' }, vim.v.event.old_mode)
|
||||||
|
then
|
||||||
opts.trigger = 'autocmd_redired'
|
opts.trigger = 'autocmd_redired'
|
||||||
vim.schedule(function()
|
vim.schedule(function()
|
||||||
M.refresh(opts)
|
M.refresh(opts)
|
||||||
|
|
Loading…
Reference in New Issue