pocco81 / true-zen.nvim

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

Error executing Lua callback: vim/_editor.lua:0: nvim_exec2(): Vim(set):E474: Invalid argument: nostatusline stack traceback: [C]: in function 'nvim_exec2' vim/_editor.lua: in function 'cmd' ...hare/nvim/lazy/true-zen.nvim/lua/true-zen/minimalist.lua:125: in function 'off' .../share/nvim/lazy/true-zen.nvim/lua/true-zen/ataraxis.lua:252: in function 'off' .../share/nvim/lazy/true-zen.nvim/lua/true-zen/ataraxis.lua:291: in function 'toggle' ...ocal/share/nvim/lazy/true-zen.nvim/lua/true-zen/init.lua:4: in function 'ataraxis' ....local/share/nvim/lazy/true-zen.nvim/plugin/true-zen.lua:9: in function <....local/share/nvim/lazy/true-zen.nvim/plu gin/true-zen.lua:8> #139

Open hrqmonteiro opened 3 months ago

hrqmonteiro commented 3 months ago

Plugin is not usable. You call, for example, TZAtaraxis and it activates, then when you call again you are not able to get out of the zen mode:

Error executing Lua callback: vim/_editor.lua:0: nvim_exec2(): Vim(set):E474: Invalid argument: nostatusline
stack traceback:
        [C]: in function 'nvim_exec2'
        vim/_editor.lua: in function 'cmd'
        ...hare/nvim/lazy/true-zen.nvim/lua/true-zen/minimalist.lua:125: in function 'off'
        .../share/nvim/lazy/true-zen.nvim/lua/true-zen/ataraxis.lua:252: in function 'off'
        .../share/nvim/lazy/true-zen.nvim/lua/true-zen/ataraxis.lua:291: in function 'toggle'
        ...ocal/share/nvim/lazy/true-zen.nvim/lua/true-zen/init.lua:4: in function 'ataraxis'
        ....local/share/nvim/lazy/true-zen.nvim/plugin/true-zen.lua:9: in function <....local/share/nvim/lazy/true-zen.nvim/plu
gin/true-zen.lua:8>

image

mgiugliano commented 3 months ago

I have been experiencing the exact same issue, after upgrading to the latest nvim version (i.e. brew install ... --HEAD), 0.11.0.

It was instead working without problems with a previous version (0.9.5) of neovim. :-(

denniswiersma commented 3 months ago

Manually applying the fix in #133 made it work again for me.

hrqmonteiro commented 3 months ago

Manually applying the fix in #133 made it work again for me.

It only works for enabling it, and still is bugged, shows two statuslines

image

And when you toggle back, this another error arises

image