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()
|
||||
local win = vim.api.nvim_get_current_win()
|
||||
local set_opts = function()
|
||||
vim.wo[win].statuscolumn = [[%!v:lua.StatusCol()]]
|
||||
vim.wo[win].foldcolumn = "1"
|
||||
pcall(function()
|
||||
vim.wo[win].statuscolumn = [[%!v:lua.StatusCol()]]
|
||||
vim.wo[win].foldcolumn = "1"
|
||||
end)
|
||||
end
|
||||
set_opts()
|
||||
vim.defer_fn(set_opts, 10)
|
||||
|
Loading…
Reference in New Issue
Block a user