From 57612c66fe084d22beb1d86f17fa609d3e2a7dc2 Mon Sep 17 00:00:00 2001 From: Charlie Root Date: Wed, 16 Apr 2025 22:34:25 +0200 Subject: [PATCH] temperance/configuration.nix: disable docker --- hosts/temperance/configuration.nix | 2 +- packages/helix.nix | 24 +++++++++++++++++++++++- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/hosts/temperance/configuration.nix b/hosts/temperance/configuration.nix index 655f67f..cf0502c 100644 --- a/hosts/temperance/configuration.nix +++ b/hosts/temperance/configuration.nix @@ -36,7 +36,7 @@ in { udisks2.enable = true; }; - virtualisation.docker.enable = true; + virtualisation.docker.enable = false; meta = { mainUser.gitSigningKey = ""; diff --git a/packages/helix.nix b/packages/helix.nix index 305dbaa..fc3215d 100644 --- a/packages/helix.nix +++ b/packages/helix.nix @@ -31,6 +31,7 @@ tinymist, typescript-language-server, vscode-langservers-extracted, + simple-completion-language-server, helix, ... }: let @@ -136,6 +137,12 @@ auto-format = true; language-servers = ["dprint" "typescript-language-server"]; } + { + name = "jjdescription"; + scope = "source.jjdescription"; + file-types = ["jjdescription"]; + language-servers = ["scls"]; + } { name = "json"; formatter = mark "json"; @@ -144,10 +151,11 @@ name = "markdown"; auto-format = true; formatter = mark "md"; + language-servers = ["scls" "marksman"]; } { name = "nix"; - language-servers = ["nil"]; + language-servers = ["nil" "scls"]; } { name = "qml"; @@ -255,6 +263,20 @@ config.nil.formatting.command = ["${getExe alejandra}" "-q"]; }; + 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 = { command = lib.getExe typescript-language-server; args = ["--stdio"];