diff --git a/home.nix b/home.nix index e636eb6..762c09c 100644 --- a/home.nix +++ b/home.nix @@ -80,6 +80,7 @@ pkgs.nodePackages.intelephense # PHP lsp pkgs.nodePackages.typescript-language-server pkgs.prettierd + pkgs.eslint_d ]; }; diff --git a/nvim/lua/my/lsp.lua b/nvim/lua/my/lsp.lua index b651d64..486ae90 100644 --- a/nvim/lua/my/lsp.lua +++ b/nvim/lua/my/lsp.lua @@ -87,13 +87,15 @@ local shellcheck = { local servers = { efm = { - filetypes = { "typescript", "typescriptreact", "sh", "php" }, + filetypes = { "javascript", "javascriptreact", "typescript", "typescriptreact", "sh", "php" }, init_options = { documentFormatting = true }, settings = { rootMarkers = { ".git/" }, languages = { typescript = { prettier, eslint }, typescriptreact = { prettier, eslint }, + javascript = { prettier, eslint }, + javascriptreact = { prettier, eslint }, sh = { shellcheck }, php = { prettier }, },