Neovim lsp in julia 1.12

I’ve been trying out JETLS.jl the last couple of weeks and it’s working quite nicely.
Here’s my config:

local julia_envs = os.getenv("JULIA_ENVS") or (os.getenv("HOME") .. "/source/repos")

return {
  cmd = {
        "julia",
        "--startup-file=no",
        "--history-file=no",
        "--project=" .. julia_envs.. "/JETLS.jl",
        julia_envs.. "/JETLS.jl/runserver.jl",
  },
  cmd_env = {
        JULIAUP_CHANNEL="1.12",
  },
  filetypes = {"julia"},
  root_markers = { "Project.toml", "JuliaProject.toml" },
}

and the vim.lsp.enable("julia_jetls") in init.lua.

4 Likes