-
Notifications
You must be signed in to change notification settings - Fork 391
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
Return to original window when closing toc or word count #2817
Comments
This seems like a bug, but I can't immediately reproduce. I believe you may have some settings that are relevant. Could you show me which VimTeX settings you are using? |
I tried to reproduce with your set nocompatible
set runtimepath^=~/.local/plugged/vimtex
set runtimepath+=~/.local/plugged/vimtex/after
filetype plugin indent on
syntax enable
nnoremap q :qall!<cr>
silent edit foo.tex I save both files in a test directory and start neovim with |
Using the following init.lua file local root = '/tmp/nvim-minimal'
-- Set stdpaths to use root dir
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 = {
{
'lervag/vimtex',
config = function()
vim.g.vimtex_toc_config = {
split_pos = 'vert topleft',
split_width = 40,
}
end,
},
}
require('lazy').setup(plugins, {
root = root .. '/plugins',
}) |
Thanks; with this I can also reproduce. I'll look into it. |
I think it's fixed now. |
Thank you! |
Description
If I have a split buffer and either open the table of contents or the word count buffer and then quit those buffers then the cursor doesn't return to the original window.
Steps to reproduce
Note: I can add a minimal.tex file if this is not immediately reproducible.
foo.tex
file with minimal content:q
to close such buffers.Expected behavior
After 3. the cursor should return to the original window (right)
Actual behavior
It goes to the left window
Do you use a latexmkrc file?
No
VimtexInfo
The text was updated successfully, but these errors were encountered: