From 252c0bfea0622c06ab644507e70d2d8781db5b28 Mon Sep 17 00:00:00 2001 From: Mikael Voss Date: Fri, 29 Nov 2024 20:43:16 +0100 Subject: [PATCH] editor: Add various language servers --- home/config/nil/editor.nix | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/home/config/nil/editor.nix b/home/config/nil/editor.nix index fe480fb..4d12246 100644 --- a/home/config/nil/editor.nix +++ b/home/config/nil/editor.nix @@ -1,7 +1,27 @@ -{ ... }: { config, lib, ... }: { +{ ... }: { config, lib, pkgs, ... }@args: +let + osConfig = args.osConfig or { }; +in { programs.helix = { enable = true; defaultEditor = true; + extraPackages = lib.mkIf (osConfig.hardware.graphics.enable or false) + (with pkgs; [ + bash-language-server + clang-tools + cmake-language-server + dot-language-server + elixir-ls + lldb + markdown-oxide + nil + python3Packages.python-lsp-server + taplo + texlab + typescript-language-server + yaml-language-server + ]); + catppuccin.useItalics = true; settings = { editor = {