From 6662ffb22ffcd31b677b464ed0ea2aa33dc0683b Mon Sep 17 00:00:00 2001 From: Snoweuph Date: Fri, 31 May 2024 20:34:05 +0200 Subject: [PATCH] Cleanup --- .config/nvim/dependencies.dnf.txt | 4 ++++ .../editor/language_server/language_server_generic.lua | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.config/nvim/dependencies.dnf.txt b/.config/nvim/dependencies.dnf.txt index c10e926..f544f0b 100644 --- a/.config/nvim/dependencies.dnf.txt +++ b/.config/nvim/dependencies.dnf.txt @@ -11,3 +11,7 @@ gpgkey=https://repo.charm.sh/yum/gpg.key' | sudo tee /etc/yum.repos.d/charm.repo # Packages neovim lua gcc curl wget git unzip tar gzip ripgrep php composer go nodejs npm delve stylua + +# NPM +npm install -g @fsouza/prettierd +npm install -g eslint_d diff --git a/.config/nvim/lua/plugins/editor/language_server/language_server_generic.lua b/.config/nvim/lua/plugins/editor/language_server/language_server_generic.lua index ce769d3..81e4931 100644 --- a/.config/nvim/lua/plugins/editor/language_server/language_server_generic.lua +++ b/.config/nvim/lua/plugins/editor/language_server/language_server_generic.lua @@ -25,7 +25,9 @@ end function LSP.formatter(null_ls) return { - null_ls.builtins.formatting.prettier, + null_ls.builtins.formatting.prettier.with({ + command = "prettierd" + }), null_ls.builtins.diagnostics.spectral, null_ls.builtins.code_actions.refactoring, null_ls.builtins.code_actions.proselint,