You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I often have several buffers open and when I want to exit neovim, I use :wqa. However this causes issues when the snacks terminal buffers are still open, resulting in the following errors:
E948: Job still running
E676: No matching autocommands for buftype= buffer
It would be nice if the terminal plugin was able to suppress errors related to writing to the terminal buffers when neovim is trying to exit.
Repro steps
Config:
local root = vim.fn.fnamemodify("./.repro", ":p")
-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "cache" }) do
vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end
-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({
"git",
"clone",
"--filter=blob:none",
"--single-branch",
"https://github.com/folke/lazy.nvim.git",
lazypath,
})
end
vim.opt.runtimepath:prepend(lazypath)
-- install plugins
local plugins = {
-- do not remove the colorscheme!
"folke/tokyonight.nvim",
{
"folke/snacks.nvim",
opts = {
terminal = {
enabled = true,
},
},
},
}
require("lazy").setup(plugins, {
root = root .. "/plugins",
})
vim.opt.termguicolors = true
vim.cmd([[colorscheme tokyonight]])
Open neovim with nvim -u repro.lua
Open snacks terminal with :lua snacks.terminal.toggle()
Hide snacks terminal with :lua snacks.terminal.toggle()
Try to quit neovim with :wqa
Describe the solution you'd like
It would be nice if the plugin could suppress errors related to writing to the terminal buffers when exiting neovim with :wqa
Describe alternatives you've considered
I have worked around this by first doing :wa (which does not seem to trigger any errors) followed by :q. However it would be nice to be able to quit with one command using :wqa
Additional context
No response
The text was updated successfully, but these errors were encountered:
Did you check the docs?
Is your feature request related to a problem? Please describe.
I often have several buffers open and when I want to exit neovim, I use :wqa. However this causes issues when the snacks terminal buffers are still open, resulting in the following errors:
It would be nice if the terminal plugin was able to suppress errors related to writing to the terminal buffers when neovim is trying to exit.
Repro steps
Config:
Describe the solution you'd like
It would be nice if the plugin could suppress errors related to writing to the terminal buffers when exiting neovim with :wqa
Describe alternatives you've considered
I have worked around this by first doing :wa (which does not seem to trigger any errors) followed by :q. However it would be nice to be able to quit with one command using :wqa
Additional context
No response
The text was updated successfully, but these errors were encountered: