refactor(nvim): improve hack around neogit statuscol
Some checks failed
Check Formatting of Files / Check-Formatting (push) Failing after 42s
Some checks failed
Check Formatting of Files / Check-Formatting (push) Failing after 42s
This commit is contained in:
parent
a9a4b3dfc4
commit
1f3689d616
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user