-
Notifications
You must be signed in to change notification settings - Fork 35
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
Supply namespace information to autocompletion provider? #33
Comments
I have a plugin for lsp-mode that uses LanguageServer.jl and should do what you're asking for: https://github.com/non-Jedi/lsp-julia To be honest, it's a bit flaky still, the README badly needs updated, and it probably needs some changes for 0.7/1.0. But I feel like long term LanguageServer.jl is gonna be what we want to use in emacs for julia completions. |
@MasonProtter: the current architecture does not support this, and I have don't have any obvious idea how it could be done. The problem is that I am following LanguageServer-related developments of by @non-Jedi and others with interest, and would be very happy to see a solution to these things. Think of |
Another solution I could imagine is just starting a parallel process that communicates with |
@non-Jedi What functionality from |
@MasonProtter First of all, if you're on Julia 1.0.0, I haven't tested that at all yet with lsp-julia, so it could be completely broken. If you've read through the README for lsp-mode (https://github.com/emacs-lsp/lsp-mode) and lsp-ui (https://github.com/emacs-lsp/lsp-ui), and can't get stuff from there to work with Julia 0.6, please open an issue about it on https://github.com/non-Jedi/lsp-julia |
One idea that came up in a discussion on Slack regarding emacs autocompletion in
julia-mode
is that it's hard (from what I understand) to get autocompletion for Julia that knows about user-defined types, variables, functions, etc. It was suggested to me that one possible solution would be to havejulia-repl
query the running repl to find a list of defined names in the running Julia session and then that list of names can be sent tocompany-mode
for autocompletion. Is this something that is possible with the current architecture ofjulia-repl
?If so, how difficult would it be to implement?
Is there perhaps a different better way to get smart juno-style autocompletion in emacs for Julia that I don't know about?
The text was updated successfully, but these errors were encountered: