From 6047116693350f6d0bb72bee57cc852063e9b16f Mon Sep 17 00:00:00 2001 From: Maciej Lebiest Date: Mon, 29 Jul 2024 15:30:20 +0200 Subject: [PATCH] lsp servers cleaning --- Containerfile | 4 --- README.md | 8 ++++++ lua/plugins/nvim-lspconfig.lua | 46 ---------------------------------- 3 files changed, 8 insertions(+), 50 deletions(-) diff --git a/Containerfile b/Containerfile index 7d18f41..d0f4ebb 100644 --- a/Containerfile +++ b/Containerfile @@ -34,16 +34,12 @@ ENV MASON_PKGS=" \ dockerfile-language-server \ eslint-lsp \ html-lsp \ - intelephense \ json-lsp \ marksman \ - phpcs \ - phpstan \ python-lsp-server \ jedi-language-server \ ruff \ sqlls \ - typescript-language-server \ yaml-language-server \ markdownlint \ ansible-language-server \ diff --git a/README.md b/README.md index ac43591..5cdf0d8 100644 --- a/README.md +++ b/README.md @@ -197,6 +197,8 @@ podman start -ai {project/container name} ## Additional packages to install as needed +**remember to enable them in plugings/nvim-lspconfig.lua** + ### Perl lang For Perl language support run this command to install required packages for @@ -223,6 +225,12 @@ dnf install -y ruby-devel rubygems :MasonInstall standardrb ruby-lsp solargraph ``` +### PHP + +```bash +:MasonInstall php cs phpstan +``` + ## Inside vim ```vim diff --git a/lua/plugins/nvim-lspconfig.lua b/lua/plugins/nvim-lspconfig.lua index 5134df4..cb2fcb0 100644 --- a/lua/plugins/nvim-lspconfig.lua +++ b/lua/plugins/nvim-lspconfig.lua @@ -121,10 +121,6 @@ return { --on_attach = on_attach, --capabilities = capabilities, --} - require 'lspconfig'.sourcekit.setup { - on_attach = on_attach, - capabilities = capabilities, - } require 'lspconfig'.bashls.setup { on_attach = on_attach, capabilities = capabilities, @@ -133,36 +129,10 @@ return { on_attach = on_attach, capabilities = capabilities, } - require 'lspconfig'.intelephense.setup { - on_attach = on_attach, - capabilities = capabilities, - } require 'lspconfig'.eslint.setup { on_attach = on_attach, capabilities = capabilities, } - require 'lspconfig'.tsserver.setup { - on_attach = on_attach, - capabilities = capabilities, - } - require 'lspconfig'.perlpls.setup { - on_attach = on_attach, - capabilities = capabilities, - } - --require 'lspconfig'.perlnavigator.setup { - --settings = { - --perlnavigator = { - --perlPath = 'perl', - --enableWarnings = true, - --perltidyProfile = '', - --perlcriticProfile = '', - --perlcriticEnabled = true, - --} - --}, - --on_attach = on_attach, - --capabilities = capabilities, - --} - require 'lspconfig'.cssls.setup { on_attach = on_attach, capabilities = capabilities, @@ -223,22 +193,6 @@ return { on_attach = on_attach, capabilities = capabilities, } - require 'lspconfig'.r_language_server.setup { - on_attach = on_attach, - capabilities = capabilities, - } - require 'lspconfig'.solargraph.setup { - on_attach = on_attach, - capabilities = capabilities, - } - require 'lspconfig'.ruby_lsp.setup { - on_attach = on_attach, - capabilities = capabilities, - } - require 'lspconfig'.standardrb.setup { - on_attach = on_attach, - capabilities = capabilities, - } require 'lspconfig'.helm_ls.setup { on_attach = on_attach, capabilities = capabilities,