wincent / command-t

⌨️ Fast file navigation for Neovim and Vim
BSD 2-Clause "Simplified" License
2.74k stars 317 forks source link

Unable to hide statusline in command-t buffer #371

Closed shivanshukmr closed 3 years ago

shivanshukmr commented 3 years ago

I wish to hide my statusline while in command-t buffer. I have tried using autocmds, but it doesn't seem to work. I have this in my vimrc(init.vim).

autocmd! FileType command-t set laststatus=0 \| autocmd BufLeave <buffer> set laststatus=2

I am using NVIM v0.5.0-812-gd17e50879. Also note that this does work with other file types, only doesn't work with command-t buffer.

shivanshukmr commented 3 years ago

Okay, I found another method to accomplish this behaviour. For anyone else wanting the same, here is the solution.

autocmd! User CommandTWillShowMatchListing
autocmd User CommandTWillShowMatchListing set laststatus=0
autocmd! User CommandTDidHideMatchListing
autocmd User CommandTDidHideMatchListing set laststatus=2
wincent commented 3 years ago

Thanks for sharing your findings @shivanshukmr.