Replies: 2 comments
-
|
related: neovim/neovim#36130 |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
For anyone having trouble with this, there’s a workaround: vim.api.nvim_create_autocmd("WinClosed", {
group = vim.api.nvim_create_augroup("treesitter_context_only", { clear = true }),
callback = function(args)
local winid = tonumber(args.match)
-- check if a treesitter context float window
if winid and vim.w[winid].treesitter_context_line_number then
vim.schedule(function()
require("treesitter-context").enable()
end)
end
end,
}) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm used to using :only to keep only the current window, but it also closes the context window. Is there any way to preserve it?
Beta Was this translation helpful? Give feedback.
All reactions