feat (packages/helix): lsp configs
This commit is contained in:
parent
67d54f0e87
commit
eedb90cb37
1 changed files with 48 additions and 22 deletions
|
|
@ -18,28 +18,32 @@ in
|
||||||
keys.insert.j.k = "normal_mode";
|
keys.insert.j.k = "normal_mode";
|
||||||
};
|
};
|
||||||
languages = {
|
languages = {
|
||||||
language-server.tinymist = {
|
language-server = {
|
||||||
config.exportPdf = "onSave";
|
tinymist = {
|
||||||
config.outputPath = "$root/$dir/out/$name";
|
config.exportPdf = "onSave";
|
||||||
};
|
config.outputPath = "$root/$dir/out/$name";
|
||||||
language-server.scls = {
|
};
|
||||||
command = "simple-completion-language-server";
|
scls = {
|
||||||
config.feature_words = false;
|
command = "simple-completion-language-server";
|
||||||
config.feature_snippets = true;
|
config.feature_words = false;
|
||||||
config.snippets_first = true;
|
config.feature_snippets = true;
|
||||||
config.snippets_inline_by_word_tail = false;
|
config.snippets_first = true;
|
||||||
config.feature_unicode_input = true;
|
config.snippets_inline_by_word_tail = false;
|
||||||
config.feature_paths = false;
|
config.feature_unicode_input = true;
|
||||||
config.feature_citations = false;
|
config.feature_paths = false;
|
||||||
environment.RUST_LOG = "info,simple-completion-language-server=info";
|
config.feature_citations = false;
|
||||||
environment.LOG_FILE = "/tmp/completion.log";
|
environment.RUST_LOG = "info,simple-completion-language-server=info";
|
||||||
};
|
environment.LOG_FILE = "/tmp/completion.log";
|
||||||
language-server.ocamllsp = {
|
};
|
||||||
command = "ocamllsp";
|
ocamllsp = {
|
||||||
args = [ "--fallback-read-dot-merlin" ];
|
command = "ocamllsp";
|
||||||
};
|
args = [ "--fallback-read-dot-merlin" ];
|
||||||
language-server.menhir-lsp = {
|
};
|
||||||
command = "menhir-lsp";
|
menhir-lsp.command = "menhir-lsp";
|
||||||
|
dafny-lsp = {
|
||||||
|
command = "dafny";
|
||||||
|
args = [ "server" ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
language = [
|
language = [
|
||||||
{
|
{
|
||||||
|
|
@ -58,6 +62,28 @@ in
|
||||||
];
|
];
|
||||||
scope = "source.menhir";
|
scope = "source.menhir";
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
name = "ocaml";
|
||||||
|
language-servers = [
|
||||||
|
"scls"
|
||||||
|
"ocamllsp"
|
||||||
|
];
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "dafny";
|
||||||
|
file-types = [ "dfy" ];
|
||||||
|
language-servers = [ "dafny-lsp" ];
|
||||||
|
scope = "source.dafny";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "zelus";
|
||||||
|
file-types = [
|
||||||
|
"zli"
|
||||||
|
"zls"
|
||||||
|
];
|
||||||
|
language-servers = [ "scls" ];
|
||||||
|
scope = "source.ocaml";
|
||||||
|
}
|
||||||
];
|
];
|
||||||
grammar = [
|
grammar = [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue