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
Describe the bug
A clear and concise description of what the bug is.
Previously, setting backends = {"lsp", "treesitter", ..} means that if LSP has not started yet, Treesitter's symbols will take over to be used in :AerialToggle instead. Now, the behaviour just seems to be hanging, waiting for the LSP to be ready.
System information
OS: mac
Neovim version: v0.8
AerialInfo: This is the AerialInfo during "Loading"
Aerial Info
-----------
Filetype: lua
Configured backends:
lsp (supported) (attached)
treesitter (supported)
markdown (not supported) [Filetype is not markdown]
man (not supported) [Filetype is not man]
Show symbols: all symbols
Aerial config:
require("aerial").setup({
-- close_behavior = "close",highlight_on_hover=true,
highlight_on_jump=200,
close_on_select=true,
-- fold code from tree (overwrites treesitter foldexpr)manage_folds=false,
-- link_tree_to_folds = true,-- link_folds_to_tree = true,show_guides=true,
guides= {
mid_item="│ ",
last_item="└ ",
},
filter_kind=false,
-- fall back to treesitter if LSP not availablebackends= { "lsp", "treesitter", "markdown", "man" },
on_attach=function(bufnr)
-- set fold levellocalname=vim.api.nvim_buf_get_name(bufnr)
localmatches= {
vim.fn.expand("~/dotconfig/nvim/lua/axie/plugins/init.lua"),
vim.fn.expand("~/.config/nvim/lua/axie/plugins/init.lua"),
}
ifvim.tbl_contains(matches, name) thenrequire("aerial").tree_set_collapse_level(bufnr, 1)
endend,
keymaps= {
-- HELP: there is delay waiting for `<<` and `>>`
["<"] ="actions.tree_decrease_fold_level",
[">"] ="actions.tree_increase_fold_level",
},
})
To Reproduce
Steps to reproduce the behavior:
Open up a file with a slow starting LSP server
Toggle Aerial
Loading...
If possible, provide a minimal file that will trigger the issue:
minimal code here
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
The previous behavior happened mostly as an accident of how the timing of various functions worked. The LSP backend didn't attach very quickly, so it was completely skipped over at first. Now, due to changes in LSP, or (more likely) the fact that we're inspecting the LSP state differently, it attaches earlier and never falls back to treesitter.
I've now added explicit support for racing all the symbol providers when a buffer is first attached. This should restore the functionality you want in a more supported, less brittle way.
Describe the bug
A clear and concise description of what the bug is.
Previously, setting
backends = {"lsp", "treesitter", ..}
means that if LSP has not started yet, Treesitter's symbols will take over to be used in:AerialToggle
instead. Now, the behaviour just seems to be hanging, waiting for the LSP to be ready.System information
To Reproduce
Steps to reproduce the behavior:
If possible, provide a minimal file that will trigger the issue:
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: