From 39d9cb7e5adef32d0dcf70c03720d90dd31d2b79 Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Mon, 24 Mar 2025 09:53:30 -0400 Subject: [PATCH] more lsps and fix syntax var colors --- .../modules/nmasur/presets/programs/helix.nix | 38 ++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/platforms/home-manager/modules/nmasur/presets/programs/helix.nix b/platforms/home-manager/modules/nmasur/presets/programs/helix.nix index 158cde6..c88b247 100644 --- a/platforms/home-manager/modules/nmasur/presets/programs/helix.nix +++ b/platforms/home-manager/modules/nmasur/presets/programs/helix.nix @@ -53,6 +53,10 @@ in command = lib.getExe pkgs.marksman; }; + language-server.terraform-ls = { + command = "${lib.getExe pkgs.terraform-ls} serve"; + }; + language-server.bash-language-server = { command = lib.getExe ( pkgs.bash-language-server.overrideAttrs { @@ -74,6 +78,38 @@ in name = "markdown"; auto-format = true; language-servers = [ "marksman" ]; + formatter = { + command = lib.getExe pkgs.mdformat; + args = [ "-" ]; + }; + } + { + name = "tfvars"; + auto-format = true; + language-servers = [ "terraform-ls" ]; + formatter = { + command = lib.getExe pkgs.terraform; + args = [ + "fmt" + "-" + ]; + }; + } + { + name = "hcl"; + auto-format = true; + language-servers = [ "terraform-ls" ]; + formatter = { + command = lib.getExe pkgs.terraform; + args = [ + "fmt" + "-" + ]; + }; + } + { + name = "bash"; + auto-format = true; } ]; @@ -149,7 +185,7 @@ in "string" = config.theme.colors.base0B; "type" = config.theme.colors.base0A; "variable" = config.theme.colors.base08; - "variable.other.member" = config.theme.colors.base0B; + "variable.other.member" = config.theme.colors.base05; "warning" = config.theme.colors.base09; "markup.bold" = { fg = config.theme.colors.base0A;