Closed WhiteBlackGoose closed 1 year ago
Fix
local id = vim.api.nvim_create_augroup("StatusCol", {})
vim.api.nvim_create_autocmd({"FileType", "BufEnter"}, {
group = id,
callback = function()
if vim.api.nvim_buf_get_option(0, "ft") == "NvimTree" then
vim.opt_local.statuscolumn = ""
end
end,
})
It does what you asked it to do. Not sure if we can do anything here without potentially breaking other set ups.
If it's by design, feel free to close it
Description
I set statuscolumn, but it affected nvim-tree too
Neovim version
Operating system and version
NixOS unstable
nvim-tree version
e2a4c9d09d205ebe5f071264f43f73a0077c43a3
Minimal config
Note: all I did is adding
vim.o.statuscolumn = "hello"
in the end
Steps to reproduce
nvt-min.lua
:NvimTreeOpen
Expected behavior
It should unset it for its buffer, I think
Actual behavior
It keeps the statuscolumn