From 368f3a25fdc316dcd67d13afe0c27e2c3045c291 Mon Sep 17 00:00:00 2001 From: "Lennart J. Kurzweg (Nx2)" Date: Sat, 29 Jun 2024 21:55:26 +0200 Subject: [PATCH] spellcheck (not working) --- home-modules/helix.nix | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/home-modules/helix.nix b/home-modules/helix.nix index e350537..c39e189 100644 --- a/home-modules/helix.nix +++ b/home-modules/helix.nix @@ -1,4 +1,4 @@ -{ pkgs, pkgs-unstable, rice, ... }: +{ pkgs, pkgs-unstable,lib, rice, ... }: { home = { packages = with pkgs; [ @@ -7,6 +7,8 @@ python311Packages.python-lsp-server lldb # debugger for llvm stuff yaml-language-server # yaml + marksman # markdown + vale-ls # spellckecker lsp (needs vale) ] ++ (with pkgs-unstable; [ helix ]); @@ -57,9 +59,19 @@ C-g = [":new" ":insert-output lazygit" ":buffer-close!" ":redraw"]; }; }; - languages.language = [{ - name = "nix"; - }]; + languages = { + language = [ + { + name = "latex"; + language-servers = ["texlab" "spsdfsellchek"]; + } + ]; + language-server = { + spellcheck = { + command = lib.getExe pkgs.vale-ls; + }; + }; + }; themes = { base16 = with rice.color; { "attributes" = foreground; @@ -80,13 +92,13 @@ "function" = secondary.bright; "hint" = tertiary.bright; "info" = foreground; - "keyword" = secondary.base; + "keyword" = special.base; "label" = foreground; "namespace" = weird.bright; "operator" = foreground; "special" = special.base; "string" = secondary.bright; - "type" = red.dark; + "type" = red.base; "variable" = accent.base; "variableother.member" = foreground; "warning" = red.base; @@ -210,7 +222,8 @@ "fg" = black.bright; }; "ui.virtual.inlay-hint" = { - "fg" = black.bright; + "fg" = weird.bright; + "bg" = weird.dark; }; "ui.virtual.ruler" = { "bg" = background;