:lang julia
The better, faster MATLAB
1. Description
This module adds support for the Julia language to Doom Emacs.
- Syntax highlighting and latex symbols from
julia-mode
- REPL integration from
julia-repl
- Code completion and syntax checking, requires :tools lsp and +lsp
1.1. Maintainers
This module has no dedicated maintainers. Become a maintainer?
1.2. Module flags
- +lsp
- Enable LSP support for
julia-mode
. Requires :tools lsp and a langserver (supports LanguageServer.jl).
1.3. Packages
- julia-mode
- julia-repl
- if +lsp and :tools lsp
- if +lsp and :tools lsp +eglot
1.4. Hacks
No hacks documented for this module.
2. Prerequisites
This module requires julia.
If +lsp is enabled, a language server is required as well.
2.1. Language Server
+lsp requires LanguageServer.jl and SymbolServer.jl. The lsp-julia and eglot-jl packages both come bundled with their own versions of these servers, which is used by default. If you’re happy with that, no further configuration is necessary.
However, to use your own installation you will need to install then configure them. To install them, execute these commands in a Julia REPL:
Then configure lsp-julia or eglot-jl depending on whether you have enabled :tools lsp with or without its +eglot flag, respectively:
2.1.1. lsp-julia
To instruct lsp-julia not to use the built-in package:
To find your installation of LanguageServer.jl
, eglot-jl
needs to know the
environment in which it is installed. This is set to v1.0 by default as it is
the current LTS:
2.1.2. eglot-jl
To find your installation of LanguageServer.jl
, eglot-jl
must know the
environment in which it is installed. This is set to v1.0 by default as it is
the current LTS:
;; add to $DOOMDIR/config.el (setq eglot-jl-language-server-project "~/.julia/environments/v1.0")
But to let eglot-jl
use the environment bundled with it, set it to
eglot-jl-base
instead:
3. Usage
3.1. Language Server
+lsp adds code completion, syntax checking, formatting and other lsp-mode
or
eglot
features. It requires LanguageServer.jl
, the installation of which is
described above.
4. Configuration
5. Troubleshooting
There are no known problems with this module. Report one?
6. TODO Appendix
This module has no appendix yet. Write one?