From 9066d49988cd823c1682ce81d017f6db0d20da8c Mon Sep 17 00:00:00 2001 From: Bailey Stevens Date: Fri, 21 Jun 2024 23:10:34 -0400 Subject: [PATCH] Updates LSP config. --- modules/home/core/desktops/kde/default.nix | 18 ++++++++++-------- packages/lsp-path/default.nix | 9 +++++++-- 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/modules/home/core/desktops/kde/default.nix b/modules/home/core/desktops/kde/default.nix index 23c0a09..0705c79 100644 --- a/modules/home/core/desktops/kde/default.nix +++ b/modules/home/core/desktops/kde/default.nix @@ -30,14 +30,16 @@ }; xdg.configFile."kate/lspclient/settings.json" = { - text = '' - { - "global": - { - "path": ["${pkgs.mtxyz.lsp-path}/bin"] - } - } - ''; + text = builtins.toJSON { + global = { + path = [ "${pkgs.mtxyz.lsp-path}/bin" ]; + }; + servers = { + rust = { + path = [ "${pkgs.mtxyz.lsp-path}/bin" ]; + }; + }; + }; }; }; } diff --git a/packages/lsp-path/default.nix b/packages/lsp-path/default.nix index dc2d9e4..651fa1d 100644 --- a/packages/lsp-path/default.nix +++ b/packages/lsp-path/default.nix @@ -8,6 +8,8 @@ universal-ctags, nixpkgs-fmt, yaml-language-server, + fenix, + stdenv, ... }: @@ -15,8 +17,11 @@ symlinkJoin { name = "lsp-path"; paths = [ - biome nil rust-analyzer clang-tools + nil nixpkgs-fmt + clang-tools stdenv.cc + rust-analyzer fenix.stable.toolchain python3Packages.python-lsp-server - universal-ctags nixpkgs-fmt yaml-language-server + yaml-language-server biome + universal-ctags ]; }