fennel-language-server icon indicating copy to clipboard operation
fennel-language-server copied to clipboard

Any way to configure some symbols to mean something else?

Open Olical opened this issue 4 months ago • 0 comments

Hi there! I can't see it in the docs so I thought I'd try my luck and ask you. In aniseed and nfnl there's an autoload function that wraps a require in a lazy load meta table, so when you try to look something up in that module at runtime it's required JIT. By using this all throughout your project you end up with lazy loading your modules by default, causing your Neovim plugin to load a little quicker if it's loaded at startup time.

Is there anything in the configuration for this language server that could allow us to override the symbol so when the LSP spots (autoload :foo) it knows it's equivalent to (require :foo)? No problem if not or if you don't want to implement this, it'd just be a really neat feature akin to clj-kondo's configuration that allows you to teach it "hey, when you see this macro / symbol, pretend it's a def" for example, which helps you get clj-kondo to play ball with some macros.

Thanks!

Olical avatar Oct 18 '24 11:10 Olical