about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-04-05 15:35:50 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-04-05 15:36:30 +0200
commit627429341776517a5d9c27f2371351907419758b (patch)
treefad7ca8445a8f739f898f6d45944e8ed26f2466c
parentfeat(hm/conf/nvim/plgs/lsp/servers/eslint): Init (diff)
downloadnixos-config-627429341776517a5d9c27f2371351907419758b.tar.gz
nixos-config-627429341776517a5d9c27f2371351907419758b.zip
feat(hm/conf/nvim/plgs/lsp/servers): Replace eslint by quick-lint-js
-rw-r--r--hm/soispha/conf/nvim/plgs/lsp/servers/default.nix2
-rw-r--r--hm/soispha/conf/nvim/plgs/lsp/servers/servers/eslint.nix9
-rw-r--r--hm/soispha/conf/nvim/plgs/lsp/servers/servers/quick-lint-js.nix15
3 files changed, 16 insertions, 10 deletions
diff --git a/hm/soispha/conf/nvim/plgs/lsp/servers/default.nix b/hm/soispha/conf/nvim/plgs/lsp/servers/default.nix
index 996d783b..1f59ae4e 100644
--- a/hm/soispha/conf/nvim/plgs/lsp/servers/default.nix
+++ b/hm/soispha/conf/nvim/plgs/lsp/servers/default.nix
@@ -3,7 +3,7 @@
     # ./servers/pylyzer.nix
     ./servers/bashls.nix
     ./servers/ccls.nix
-    ./servers/eslint.nix
+    ./servers/quick-lint-js.nix
     ./servers/ltex.nix
     ./servers/lua-ls.nix
     ./servers/nil_ls.nix
diff --git a/hm/soispha/conf/nvim/plgs/lsp/servers/servers/eslint.nix b/hm/soispha/conf/nvim/plgs/lsp/servers/servers/eslint.nix
deleted file mode 100644
index 69e9eb17..00000000
--- a/hm/soispha/conf/nvim/plgs/lsp/servers/servers/eslint.nix
+++ /dev/null
@@ -1,9 +0,0 @@
-{...}: {
-  programs.nixvim.plugins.lsp.servers = {
-    # TODO: Use quick list js <2024-04-05>
-    eslint = {
-      enable = true;
-      settings = {};
-    };
-  };
-}
diff --git a/hm/soispha/conf/nvim/plgs/lsp/servers/servers/quick-lint-js.nix b/hm/soispha/conf/nvim/plgs/lsp/servers/servers/quick-lint-js.nix
new file mode 100644
index 00000000..23c3054a
--- /dev/null
+++ b/hm/soispha/conf/nvim/plgs/lsp/servers/servers/quick-lint-js.nix
@@ -0,0 +1,15 @@
+{pkgs, ...}: {
+  programs.nixvim = {
+    extraConfigLuaPost =
+      /*
+      lua
+      */
+      ''
+        require('lspconfig').quick_lint_js.setup{
+        }
+      '';
+    extraPackages = with pkgs; [
+      quick-lint-js
+    ];
+  };
+}