$ nvim --version | head -1
NVIM v0.8.3
$ julia -e 'using InteractiveUtils, Pkg, JET; versioninfo(); println(Pkg.status("JET"))'
Julia Version 1.8.5
commit 17cfb8e65ea (2023-01-08 06:45 UTC)
Platform Info:
OS: Linux (x86_64-linux-gnu)
...
Status `~/.julia/environments/v1.8/Project.toml`
[c3a54625] JET v0.7.7
With Packer:
Add the following to init.lua
:
use({
"~/gitrepos/JET.nvim",
requires = "jose-elias-alvarez/null-ls.nvim",
run = [[mkdir -p ~/.julia/environments/nvim-null-ls && julia --startup-file=no --project=~/.julia/environments/nvim-null-ls -e 'using Pkg; Pkg.add("JET")']],
ft = { "julia" },
config = function()
require("jet").setup()
end,
})
With vim-plug:
Run the following in a terminal:
$ mkdir -p ~/.julia/environments/nvim-null-ls && julia --startup-file=no --project=~/.julia/environments/nvim-null-ls -e 'using Pkg; Pkg.add("JET")'
Then add the following to your init.vim
or .vimrc
:
Plug 'jose-elias-alvarez/null-ls.nvim'
Plug 'kdheepak/JuliaFormatter.vim'
lua << EOF
require("jet").setup()
EOF
require("jet").setup({
timeout = 15000, -- timeout for JET.jl
setup_lspconfig = true, -- configure lspconfig
debug = false, -- set null-ls debug
})
This plugin scans saved files, so be sure to save them.
Commands JETls start
, JETls stop
, JETls restart
is available.