pocco81 / true-zen.nvim

🦝 Clean and elegant distraction-free writing for NeoVim
GNU General Public License v3.0
984 stars 30 forks source link

Ataraxis mode hides the neovim vanilla statusline but doesn't bring it back #74

Closed ayushnix closed 2 years ago

ayushnix commented 2 years ago

When I switch on the Ataraxis mode, the statusline at the bottom (vanilla statusline that ships with neovim) gets hidden. However, when I switch off Ataraxis mode, the status line doesn't come back and stays hidden. No changes have been made to the default configuration and :TZAtaraxis is activated using <Leader>z. TrueZen has been installed as an optional plugin using packer. The neovim version is 0.6.1.

Before switching on Ataraxis mode:

swappy-20220128_012944

While Ataraxis mode is switched on: swappy-20220128_012957

After switching off Ataraxis mode: swappy-20220128_013011

ProDeSquare commented 2 years ago

If you type :help statusline you can see the default status line is set to empty. To make it stay you can set your own status line. Below is an example of how I dealt with this issue.

vim.opt.statusline = " %f%=%y %{&fileencoding?&fileencoding:&encoding}[%{&fileformat}] %l,%c %p%% "

xarthurx commented 2 years ago

Same issue using feline for statusline.

It would be super helpful if the plugin can read what was the status before activating it, and restore it afterwards.

Relying on the user to define the statusline is not very user-friendly and require advanced knowledge for the user.

pocco81 commented 2 years ago

Hello! please check #84.