lsp servers cleaning
All checks were successful
Build neovim image / build-neovim-amd64 (push) Successful in 8m54s
Build neovim image / build-neovim-arm64 (push) Successful in 16m50s
Build neovim image / update-images-manifest (push) Successful in 15s

This commit is contained in:
Maciej Lebiest 2024-07-29 15:30:20 +02:00 committed by Maciej Lebiest
parent fb7538c2f9
commit 6047116693
3 changed files with 8 additions and 50 deletions

View file

@ -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 \

View file

@ -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

View file

@ -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,