Plugin for the LSP client in Sublime Text with support for the Julia Language Server
- Total 391
- Win 144
- Mac 113
- Linux 134
|May 16||May 15||May 14||May 13||May 12||May 11||May 10||May 9||May 8||May 7||May 6||May 5||May 4||May 3||May 2||May 1||Apr 30||Apr 29||Apr 28||Apr 27||Apr 26||Apr 25||Apr 24||Apr 23||Apr 22||Apr 21||Apr 20||Apr 19||Apr 18||Apr 17||Apr 16||Apr 15||Apr 14||Apr 13||Apr 12||Apr 11||Apr 10||Apr 9||Apr 8||Apr 7||Apr 6||Apr 5||Apr 4||Apr 3||Apr 2||Apr 1|
|:information_source: This branch is only compatible with Sublime Text 4 and requires a version ≥ Build 4095. For the ST3 version please switch to the st3 branch.|
Requirements & Installation
- Julia (version 1.0 or above) must be installed on your machine.
juliaexecutable is not in your PATH, you need to provide the full path to the executable in the LSP-julia package settings.
- The Julia package from Package Control should be installed for syntax highlighting and allows the language server to start for Julia source files.
- Install the LSP package and LSP-julia from Package Control. When a Julia file is opened for the first time after installing this package, the language server will automatically be installed via the Julia package manager (this can take 1-2 minutes).
- Optionally install the Terminus package from Package Control for a simple Julia REPL integration and some functionality to run code (see below).
Most of the standard LSP features like auto-completion, documentation on hover, or goto definition are supported by the Julia language server. Some features like diagnostics require that a folder was opened in Sublime Text, and will not work in single file mode.
LSP-julia provides additional commands which are available from the command palette:
|Command label||Key binding||Description|
|LSP-julia: Change Current Environment||none||Choose the Julia project environment you are working in. The packages from this environment are used by the language server to provide autocomplete suggestions and for diagnostics/linting. Dependent on the number of packages, it might take a while for the server to do a package indexing process in the background, after switching to a different environment.|
|LSP-julia: Open Julia REPL1||none||Open a Julia REPL, started in the directory of the active file, or focus if already running.|
|LSP-julia: Select Code Block||none||Select the function or code block at the current cursor position. For multiple active cursors, only the topmost cursor position is taken into account.|
|LSP-julia: Run Code Block1||Alt+Enter||If text is selected, run it in a Julia REPL. Otherwise, run the code block containing the current cursor position and move curser to the next block.|
|LSP-julia: Run Code Cell1||Alt+Shift+Enter||If text is selected, run it in a Julia REPL. Otherwise, run the code cell containing the current cursor position and move curser to the next cell. Code cells are signalized with a specially formatted comment at the start of a line:
Commands marked with a 1 are only available if you have the Terminus package installed.
To add or adjust key bindings for the commands, edit the
.sublime-keymap file for your OS in your
For an example refer to the Default.sublime-keymap file in this repository, and for the command names from this package see LSP-julia.sublime-commands.