pocco81 / true-zen.nvim

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

Leaving Ataraxis and Minimalist mode sets predefined configuration values instead of resetting to previous values #20

Closed tbung closed 3 years ago

tbung commented 3 years ago

Entering and then leaving Ataraxis and Minimalist mode sets showtabline=2 instead of resetting it to the previous value (which in my case is showtabline=0). This can of course be circumvented using the event callbacks, but I think by default it should reset to the previous configuration instead of changing things permanently. If this is intended behaviour this issue can be closed.

tbung commented 3 years ago

I just noticed it also sets other configuration values such as relative line numbers. I will change the title accordingly.

pocco81 commented 3 years ago

I updated the README yesterday:

image

The idea for Ataraxis and Minimalis is to have a centralized configuration, however, this was suggested by another issue like two days ago so I decided to implement it... From the README:


Minimalist

minimalist = {
    store_and_restore_settings = true,
    show_vals_to_read = {
        "shown_showtabline"
    }
}

If you wanted to have the showtabline setting to have a value centralized in TrueZen's config when exiting Ataraxis or Minimalist, add it to the show_vals_to_read = {}.