From 82e52b4f9b2657116e39e36273ae5890a1c3c591 Mon Sep 17 00:00:00 2001 From: Veneficium <85629831+veneficium42@users.noreply.github.com> Date: Mon, 27 Jan 2025 19:50:29 +0100 Subject: [PATCH] helix: add nixd config --- modules/home/cliPrograms/helix/config.toml | 3 ++- modules/home/cliPrograms/helix/default.nix | 1 + modules/home/cliPrograms/helix/languages.toml | 16 ++++++++++++++++ 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 modules/home/cliPrograms/helix/languages.toml diff --git a/modules/home/cliPrograms/helix/config.toml b/modules/home/cliPrograms/helix/config.toml index 8b13789..c10c80e 100644 --- a/modules/home/cliPrograms/helix/config.toml +++ b/modules/home/cliPrograms/helix/config.toml @@ -1 +1,2 @@ - +[editor.lsp] +display-inlay-hints = true diff --git a/modules/home/cliPrograms/helix/default.nix b/modules/home/cliPrograms/helix/default.nix index 10bf073..fe7dd4a 100644 --- a/modules/home/cliPrograms/helix/default.nix +++ b/modules/home/cliPrograms/helix/default.nix @@ -8,6 +8,7 @@ programs.helix = { enable = true; settings = builtins.fromTOML (builtins.readFile ./config.toml); + languages = builtins.fromTOML (builtins.readFile ./languages.toml); }; }; } diff --git a/modules/home/cliPrograms/helix/languages.toml b/modules/home/cliPrograms/helix/languages.toml new file mode 100644 index 0000000..1291b65 --- /dev/null +++ b/modules/home/cliPrograms/helix/languages.toml @@ -0,0 +1,16 @@ +[[language]] +name = "nix" +scope = "source.nix" +injection-regex = "nix" +file-types = ["nix"] +shebangs = [] +roots = ["flake.lock"] +auto-format = true +comment-token = "#" +block-comment-tokens = { start = "/*", end = "*/" } +language-servers = ["nil", "nixd"] +indent = { tab-width = 2, unit = " " } + + +[language-server.nixd] +command = "nixd"