refactor(nvim): improve hack around neogit statuscol
Some checks failed
Check Formatting of Files / Check-Formatting (push) Failing after 42s

This commit is contained in:
Price Hiller 2024-03-21 16:34:33 -05:00
parent a9a4b3dfc4
commit 1f3689d616
Signed by: Price
GPG Key ID: C3FADDE7A8534BEB

View File

@ -7,12 +7,11 @@ return {
vim.api.nvim_create_autocmd({ "BufEnter" }, {
desc = "Ensure Neogit Status doesn't fuck the gutter up -- 🤮",
pattern = "*NeogitStatus*",
pattern = "*Neogit*",
callback = function()
local win = vim.api.nvim_get_current_win()
local set_opts = function()
vim.wo[win].statuscolumn = [[%!v:lua.StatusCol()]]
vim.wo[win].signcolumn = "yes"
vim.wo[win].foldcolumn = "1"
end
set_opts()