Closed experiacc closed 3 years ago
I think you should be able to do this with ftplugin. You could create a file inside ~/.config/nvim/after/ftplugin/
where the filename would be for example startify.lua or startify.vim
You could then paste these into that file:
vim.opt.showtabline = 0
vim.cmd([[
augroup NoTabline
au!
autocmd BufEnter <buffer> set showtabline=0
autocmd BufLeave <buffer> set showtabline=1
augroup END
]])
setlocal showtabline=0
augroup NoTabline
au!
autocmd BufEnter <buffer> set showtabline=0
autocmd BufLeave <buffer> set showtabline=1
augroup END
Let me know if this fixes your problem!
Yes this actually fixed it for startify but if i open any other file from there, tabline is still not shown. I want tabline disabled only on startify and reappear on opening any file from there.
Do you want tabline to always show even if there is only one tab open?
Yes that will do
Okay, then i think you can change set showtabline=1
to set showtabline=2
This seems to work as i wanted. Thanks!!
How can i exclude certain filetypes like startify or dashboard from showing tabline ?