Skip to content
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

Any way to configure some symbols to mean something else? #8

Open
Olical opened this issue Oct 18, 2024 · 0 comments
Open

Any way to configure some symbols to mean something else? #8

Olical opened this issue Oct 18, 2024 · 0 comments

Comments

@Olical
Copy link

Olical commented Oct 18, 2024

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant