-
-
Notifications
You must be signed in to change notification settings - Fork 610
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable statusline in file tree #424
Comments
i do this in my personal statusline, this should be part of the statusline api not nvim tree :) function! DisableST()
return " "
endfunction
au BufEnter NvimTree setlocal statusline=%!DisableST() works for me if i have no statusline enabled. This will not be implemented in nvim tree because it relies on the statusline, not nvim tree, maybe open a PR there, it's quite easy to do. |
@kyazdani42 sorry to bother , Im new to lua and could you write a lua function for it |
this is not doable on nvim-tree side, you have to refer to the plugin developer for your statusline (i cannot handle every edge case for this feature, most people might not even want this). |
I use a lua config so that vimscript code didnt work :(
|
@kyazdani42 statusline can be disabled in nerdtree |
this is not particularly something that i consider i should do in nvim tree because it's a window option that i don't manage by default so the users can basically bind an autocmd to set it themselves. I don't want to start providing setup like this or else i'd have to provide every window/buffer option one after the other. |
i think you might need to |
@kyazdani42 Is it possible to add a specific highlight for NvimTree's statuslineNc? something like NvimTreeVertsplit , which let me hide vertsplit near nvimtree. |
you should be able to set |
How do we set |
hi NvimTreeStatusLineNC guibg=nvim_treebg guifg=nvim_treebg |
If you use nvim-lualine, it provides disabled_filetypes, which you can set to NvimTree. nvim-lualine.disable_filetypes. |
For reference: |
This basically works in case you don't use nvim-lualine:
It doesn't work if you open the tree on |
Thank you |
i had to change require('nvim-tree.api').events.subscribe("TreeOpen", function ()
vim.wo.statusline = ' '
end) |
Hi there! Is it possible to disable the statusline in nvimtree? since nvimree's width is small so the statusline wouldnt be properly visible at all and I dont think there's any need of statusline in the file tree.
looks bad :
I made the statusline of inactive windows (StatuslineNC) look like a plain line
It would be nice if the statusline would be completely remvoed from nvimtree's window!
The text was updated successfully, but these errors were encountered: