fix(nvim): pcall statuscol hack
All checks were successful
Check Formatting of Files / Check-Formatting (push) Successful in 55s

This commit is contained in:
Price Hiller 2024-04-10 02:56:22 -05:00
parent 40cc77115d
commit e89b2a6c22
Signed by: Price
GPG Key ID: C3FADDE7A8534BEB

View File

@ -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)