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" }, {
|
vim.api.nvim_create_autocmd({ "BufEnter" }, {
|
||||||
desc = "Ensure Neogit Status doesn't fuck the gutter up -- 🤮",
|
desc = "Ensure Neogit Status doesn't fuck the gutter up -- 🤮",
|
||||||
pattern = "*NeogitStatus*",
|
pattern = "*Neogit*",
|
||||||
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()]]
|
vim.wo[win].statuscolumn = [[%!v:lua.StatusCol()]]
|
||||||
vim.wo[win].signcolumn = "yes"
|
|
||||||
vim.wo[win].foldcolumn = "1"
|
vim.wo[win].foldcolumn = "1"
|
||||||
end
|
end
|
||||||
set_opts()
|
set_opts()
|
||||||
|
Loading…
Reference in New Issue
Block a user