From db434c21144ff68b2fe7561d010ff37093355ce7 Mon Sep 17 00:00:00 2001 From: Schrottkatze Date: Mon, 20 Nov 2023 01:29:52 +0100 Subject: [PATCH] make rust-analyzer use clippy by default and add nushell as its own ls and remove the old cd config --- modules/shell/helix.nix | 33 +++++++++++++++++++++++++++------ other/config.nu | 3 --- 2 files changed, 27 insertions(+), 9 deletions(-) diff --git a/modules/shell/helix.nix b/modules/shell/helix.nix index e49d8b3..156cb22 100644 --- a/modules/shell/helix.nix +++ b/modules/shell/helix.nix @@ -25,14 +25,35 @@ }; }; languages = { - "php" = { - name = "php"; - file-types = [ "php" ]; - language-server = { - command = "psalm"; - args = ["--language-server"]; + language-server."nu-builtin-lsp" = { + command = "${config.users.defaultUserShell}/bin/nu"; + args = [ "--lsp" ]; + }; + language-server."rust-analyzer" = { + config = { + check.command = "clippy"; }; }; + # "php" = { + # name = "php"; + # file-types = [ "php" ]; + # language-server = { + # command = "psalm"; + # args = ["--language-server"]; + # }; + # }; + # "nu" = { + # name = "nu"; + # file-types = [ "nu" ]; + # language-servers = [{ + # }]; + # }; + language = [ + { + name = "nu"; + language-servers = [ "nu-builtin-lsp" ]; + } + ]; }; }; }; diff --git a/other/config.nu b/other/config.nu index 50a1e1c..37903ac 100644 --- a/other/config.nu +++ b/other/config.nu @@ -150,9 +150,6 @@ $env.config = { always_trash: true # always act as if -t was given. Can be overridden with -p } - cd: { - } - table: { mode: reinforced # basic, compact, compact_double, light, thin, with_love, rounded, reinforced, heavy, none, other index_mode: always # "always" show indexes, "never" show indexes, "auto" = show indexes when a table has "index" column