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 From 3c31f501164080998975883eb6f93c49bd8d3efb Mon Sep 17 00:00:00 2001 From: wesh Date: Mon, 5 Jul 2021 10:58:10 +0200 Subject: julia language-server line was plain wrong --- languages.toml | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'languages.toml') diff --git a/languages.toml b/languages.toml index 19f81347..204a5987 100644 --- a/languages.toml +++ b/languages.toml @@ -171,23 +171,7 @@ 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); - """, - ] +language-server = { command = "julia", 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]] -- cgit v1.2.3-70-g09d2