helix/languages: drop scls
helix master support buffer completion now.
This commit is contained in:
parent
655626c237
commit
327f149a42
1 changed files with 30 additions and 26 deletions
|
@ -17,7 +17,6 @@
|
||||||
nil,
|
nil,
|
||||||
ruff,
|
ruff,
|
||||||
shfmt,
|
shfmt,
|
||||||
simple-completion-language-server,
|
|
||||||
typescript-language-server,
|
typescript-language-server,
|
||||||
vscode-langservers-extracted,
|
vscode-langservers-extracted,
|
||||||
zls,
|
zls,
|
||||||
|
@ -90,12 +89,6 @@
|
||||||
auto-format = true;
|
auto-format = true;
|
||||||
language-servers = ["dprint" "typescript-language-server"];
|
language-servers = ["dprint" "typescript-language-server"];
|
||||||
}
|
}
|
||||||
{
|
|
||||||
name = "jjdescription";
|
|
||||||
scope = "source.jjdescription";
|
|
||||||
file-types = ["jjdescription"];
|
|
||||||
language-servers = ["scls"];
|
|
||||||
}
|
|
||||||
{
|
{
|
||||||
name = "json";
|
name = "json";
|
||||||
formatter = mark "json";
|
formatter = mark "json";
|
||||||
|
@ -104,11 +97,11 @@
|
||||||
name = "markdown";
|
name = "markdown";
|
||||||
auto-format = true;
|
auto-format = true;
|
||||||
formatter = mark "md";
|
formatter = mark "md";
|
||||||
language-servers = ["scls" "taplo"];
|
language-servers = ["taplo"];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
name = "nix";
|
name = "nix";
|
||||||
language-servers = ["nil" "scls" "deadnix"];
|
language-servers = ["nil"];
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
name = "qml";
|
name = "qml";
|
||||||
|
@ -172,12 +165,27 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
rust-analyzer = {
|
rust-analyzer = {
|
||||||
config = {
|
config.rust-analyzer = {
|
||||||
|
checkOnSave.command = "clippy";
|
||||||
|
procMacro.enable = true;
|
||||||
|
cargo = {
|
||||||
|
loadOutDirsFromCheck = true;
|
||||||
|
features = "all";
|
||||||
|
};
|
||||||
|
assist = {
|
||||||
|
preferSelf = true;
|
||||||
|
};
|
||||||
check = {
|
check = {
|
||||||
command = "clippy";
|
command = "clippy";
|
||||||
extraArgs = ["--" "-W" "clippy::pedantic" "-W" "clippy::nursery" "-W" "clippy::perf"];
|
extraArgs = ["--" "-W" "clippy::pedantic" "-W" "clippy::nursery" "-W" "clippy::perf"];
|
||||||
};
|
};
|
||||||
cargo.features = "all";
|
lens = {
|
||||||
|
references = true;
|
||||||
|
methodReferences = true;
|
||||||
|
};
|
||||||
|
completion.autoimport.enable = true;
|
||||||
|
experimental.procAttrMacros = true;
|
||||||
|
interpret.tests = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -220,26 +228,22 @@
|
||||||
nil = {
|
nil = {
|
||||||
command = getExe new-nil;
|
command = getExe new-nil;
|
||||||
# alejandro
|
# alejandro
|
||||||
config.nil.formatting.command = ["${getExe alejandra}" "-q"];
|
config.nil = {
|
||||||
|
formatting.command = ["${getExe alejandra}" "-q"];
|
||||||
|
diagnostics = {
|
||||||
|
bindingEndHintMinLines = 3;
|
||||||
|
};
|
||||||
|
nix.flake = {
|
||||||
|
autoArchive = true;
|
||||||
|
# autoEvalInputs = true;
|
||||||
|
nixpkgsInputName = "nixpkgs";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
deadnix = {
|
deadnix = {
|
||||||
command = getExe new-deadnix;
|
command = getExe new-deadnix;
|
||||||
};
|
};
|
||||||
|
|
||||||
scls = {
|
|
||||||
command = getExe simple-completion-language-server;
|
|
||||||
config = {
|
|
||||||
max_completion_items = 100; # set max completion results len for each group: words, snippets, unicode-input
|
|
||||||
feature_words = true; # enable completion by word
|
|
||||||
feature_snippets = true; # enable snippets
|
|
||||||
snippets_first = true; # completions will return before snippets by default
|
|
||||||
snippets_inline_by_word_tail = false; # suggest snippets by WORD tail, for example text `xsq|` become `x^2|` when snippet `sq` has body `^2`
|
|
||||||
feature_unicode_input = false; # enable "unicode input"
|
|
||||||
feature_paths = false; # enable path completion
|
|
||||||
feature_citations = false; # enable citation completion (only on `citation` feature enabled)
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
typescript-language-server = {
|
typescript-language-server = {
|
||||||
command = getExe typescript-language-server;
|
command = getExe typescript-language-server;
|
||||||
args = ["--stdio"];
|
args = ["--stdio"];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue