Comments (5)
Same issue
- Happens in any mode
- Any number of buffers
- Happens after TZNarrow is toggled off the second time and the times afterward (not necessarily consecutively)
- Toggling off TZAtaraxis results in the same error, but only if it happens with TZNarrow first
Neovim 0.8
Plugins:
lsp lualine cmp treesitter symbols-outline telescope orgmode gitsigns nnn which-key toggleterm mason colorizer leap indent-blankline comment bufferline autopairs todo-comments true-zen
from true-zen.nvim.
+1
Experiencing the same issue.
Does not only happen if you split the TZNarrow, but also if you:
- Have multiple buffers open in split view
- TZNarrow
- :q to quit TZNarrow-View
- :q to quit the buffer which was opened in TZNarrow
from true-zen.nvim.
Same issue
- Happens in any mode
- Any number of buffers
- Happens after TZNarrow is toggled off the second time and the times afterward (not necessarily consecutively)
- Toggling off TZAtaraxis results in the same error, but only if it happens with TZNarrow first
Neovim 0.8 Plugins:
lsp lualine cmp treesitter symbols-outline telescope orgmode gitsigns nnn which-key toggleterm mason colorizer leap indent-blankline comment bufferline autopairs todo-comments true-zen
add vim.wo.foldmethod = manual
solved the problem for me.
from true-zen.nvim.
I added silent to my keybidings but obviously it's not a solution, it just doesn't bother me while I work. They will have a slightly more efficient solution, I don't know enough lua to try to fix it myself.
vim.api.nvim_set_keymap("n", "<c-z>n", ":silent! TZNarrow<CR>", {})
vim.api.nvim_set_keymap("v", "<c-z>n", ":'<,'>TZNarrow<CR>", {})
vim.api.nvim_set_keymap("n", "<c-z>f", ":silent! TZFocus<CR>", {})
vim.api.nvim_set_keymap("n", "<c-z>o", ":silent! TZAtaraxis<CR>", {})
this only hides the messages but they are still there removing it with the command :q
maybe change in ataraxis.lua in the M.off function
This
if api.nvim_win_is_valid(win.main) then
if win.main ~= api.nvim_get_current_win() then
fn.win_gotoid(win.main)
end
cursor_pos = fn.getpos(".")
end
cmd("only")
if fn.filereadable(fn.expand("%:p")) == 1 then
cmd("q")
end
for this another one
if pcall(function() api.nvim_win_is_valid(win.main) end) and api.nvim_win_is_valid(win.main) then
if win.main ~= api.nvim_get_current_win() then
fn.win_gotoid(win.main)
end
cursor_pos = fn.getpos(".")
else
data.do_callback("ataraxis", "close", "pos")
return 1 -- already off
end
cmd("only")
if fn.filereadable(fn.expand("%:p")) == 1 then
pcall(function () pcall(cmd("q")) end)
end
By adding pcall to the problematic function, this seems to be enough to not see the error messages again.
from true-zen.nvim.
Same issue, the proposed patch fixed this issue, but caused a new one. I'll put details in #111.
from true-zen.nvim.
Related Issues (20)
- [Feature request] Specify padding as fractions of window size
- Is there a way to allow bufferline.nvim HOT 1
- The tob bar which shows tab is not hidden HOT 1
- Setting padding to 0 doesn't seem to work HOT 2
- StatusLine highlight groups does not get reset for ataraxis
- [Feature request] one command to exit zen-mode HOT 1
- Lualine is visible in Ataraxis mode HOT 4
- Window size changes when navigating between horizontal splits
- How to hide [Scratch] and Path and top/bottom of window
- [Question] Is it possible to use line numbers in Ataraxis Mode? HOT 2
- what is this?? HOT 1
- cursorline hides lines
- How to remove `[Scratch]` from narrow mode HOT 2
- Black bars and tmux powerline in Ataraxis
- Error with showtablines when toggling Ataraxis or Minimalist off HOT 4
- Setting a maximum width
- How to install using Lazy.nvim? HOT 1
- Tmux integration doesn't work, it still shows the bar HOT 1
- Invalid value for option 'ruler': expected boolean, got number 0 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from true-zen.nvim.