aerial.nvim icon indicating copy to clipboard operation
aerial.nvim copied to clipboard

Is there any ways to load aerial when use cmd "AerialToggle"

Open NEX-S opened this issue 2 years ago • 1 comments

It seems we must load aerial in my lsp-config's on_attach function, i want to load aerial when i exec "AerialToggle", is there any ways can reach this? ( i thought it must use some callback functions to do this.... but i dont know how to write it ...)

NEX-S avatar Jun 23 '22 03:06 NEX-S

At the moment there's not a good way to do that. I have some ideas that I think I could adapt from a new plugin I'm working on, but I'm very busy for the next two weeks so I won't be able to look into this anytime soon.

stevearc avatar Jun 23 '22 15:06 stevearc

I've recently completed a large refactor that takes advantage of Neovim 0.8's features. As part of this, I was able to remove the need for the lsp on_attach (we can use the LspAttach autocmd now) and have added the ability for aerial to lazy-load itself (meaning calling require("aerial").setup() should be extremely fast). In most cases, the lazy loading behavior is enabled by default. Check the documentation for the "lazy_load" config option for details.

stevearc avatar Oct 26 '22 16:10 stevearc