From 4984e6caee98d42350730ade7950368c8b661287 Mon Sep 17 00:00:00 2001 From: Nikos Papadakis Date: Sat, 1 Jun 2024 19:26:52 +0300 Subject: [PATCH] nvim --- home.nix | 1 + nvim/lua/my/lsp.lua | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) 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 }, },