fix(nvim): pcall
statuscol hack
All checks were successful
Check Formatting of Files / Check-Formatting (push) Successful in 55s
All checks were successful
Check Formatting of Files / Check-Formatting (push) Successful in 55s
This commit is contained in:
parent
40cc77115d
commit
e89b2a6c22
@ -11,8 +11,10 @@ return {
|
|||||||
callback = function()
|
callback = function()
|
||||||
local win = vim.api.nvim_get_current_win()
|
local win = vim.api.nvim_get_current_win()
|
||||||
local set_opts = function()
|
local set_opts = function()
|
||||||
vim.wo[win].statuscolumn = [[%!v:lua.StatusCol()]]
|
pcall(function()
|
||||||
vim.wo[win].foldcolumn = "1"
|
vim.wo[win].statuscolumn = [[%!v:lua.StatusCol()]]
|
||||||
|
vim.wo[win].foldcolumn = "1"
|
||||||
|
end)
|
||||||
end
|
end
|
||||||
set_opts()
|
set_opts()
|
||||||
vim.defer_fn(set_opts, 10)
|
vim.defer_fn(set_opts, 10)
|
||||||
|
Loading…
Reference in New Issue
Block a user