From 627429341776517a5d9c27f2371351907419758b Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Fri, 5 Apr 2024 15:35:50 +0200 Subject: feat(hm/conf/nvim/plgs/lsp/servers): Replace eslint by quick-lint-js --- hm/soispha/conf/nvim/plgs/lsp/servers/default.nix | 2 +- hm/soispha/conf/nvim/plgs/lsp/servers/servers/eslint.nix | 9 --------- .../conf/nvim/plgs/lsp/servers/servers/quick-lint-js.nix | 15 +++++++++++++++ 3 files changed, 16 insertions(+), 10 deletions(-) delete mode 100644 hm/soispha/conf/nvim/plgs/lsp/servers/servers/eslint.nix create mode 100644 hm/soispha/conf/nvim/plgs/lsp/servers/servers/quick-lint-js.nix 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 + ]; + }; +} -- cgit 1.4.1