-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed tabout clears the statusline #70
Comments
do you have a codesnippet? I use lualine myself and never encountered this oO |
Here is a minimal example (note the cmdheight=0 setting): repro.lua 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", "https://github.com/folke/lazy.nvim.git", lazypath })
end
vim.opt.runtimepath:prepend(lazypath)
vim.opt.cmdheight = 0
-- install plugins
local plugins = {
{
"nvim-lualine/lualine.nvim",
opts = {
options = {
globalstatus = true,
component_separators = "",
section_separators = "",
},
sections = {
lualine_a = { "mode" },
lualine_b = { { "filename", path = 1 } },
lualine_c = { "branch", "diagnostics" },
lualine_x = { "encoding" },
lualine_y = { "progress" },
lualine_z = { "location" },
},
},
},
{
"abecodes/tabout.nvim",
opts = {
act_as_tab = false,
act_as_shift_tab = false,
enable_backwards = true,
completion = false,
tabouts = {
{ open = "'", close = "'" },
{ open = '"', close = '"' },
{ open = "`", close = "`" },
{ open = "(", close = ")" },
{ open = "[", close = "]" },
{ open = "{", close = "}" },
},
exclude = {},
},
},
}
require("lazy").setup(plugins, {
root = root .. "/plugins",
})
|
I do not have/use lazy, but if I run this file with This does not happen with I get the feeling that |
When attempting to do a tabout (and failing), for some reason the statusline (lualine) disappears.
The text was updated successfully, but these errors were encountered: