From aa70362d2052fcf1cb689d9bb93e12b8de5298c6 Mon Sep 17 00:00:00 2001 From: wesh Date: Sun, 4 Jul 2021 14:24:33 +0200 Subject: Add julia support (LSP not working) --- languages.toml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'languages.toml') diff --git a/languages.toml b/languages.toml index f7564c88..19f81347 100644 --- a/languages.toml +++ b/languages.toml @@ -165,6 +165,31 @@ roots = [] indent = { tab-width = 4, unit = "\t" } +[[language]] +name = "julia" +scope = "source.julia" +injection-regex = "julia" +file-types = ["jl"] +roots = [] + +args = [ + "--startup-file=no", + "--history-file=no", + "-e", + """ + using LanguageServer; + using Pkg; + import StaticLint; + import SymbolServer; + env_path = dirname(Pkg.Types.Context().env.project_file); + + server = LanguageServer.LanguageServerInstance(stdin, stdout, env_path, ""); + server.runlinter = true; + run(server); + """, + ] +indent = { tab-width = 2, unit = " " } + # [[language]] # name = "haskell" # scope = "source.haskell" -- cgit v1.2.3-70-g09d2