lsp servers cleaning
This commit is contained in:
parent
fb7538c2f9
commit
6047116693
3 changed files with 8 additions and 50 deletions
|
@ -34,16 +34,12 @@ ENV MASON_PKGS=" \
|
||||||
dockerfile-language-server \
|
dockerfile-language-server \
|
||||||
eslint-lsp \
|
eslint-lsp \
|
||||||
html-lsp \
|
html-lsp \
|
||||||
intelephense \
|
|
||||||
json-lsp \
|
json-lsp \
|
||||||
marksman \
|
marksman \
|
||||||
phpcs \
|
|
||||||
phpstan \
|
|
||||||
python-lsp-server \
|
python-lsp-server \
|
||||||
jedi-language-server \
|
jedi-language-server \
|
||||||
ruff \
|
ruff \
|
||||||
sqlls \
|
sqlls \
|
||||||
typescript-language-server \
|
|
||||||
yaml-language-server \
|
yaml-language-server \
|
||||||
markdownlint \
|
markdownlint \
|
||||||
ansible-language-server \
|
ansible-language-server \
|
||||||
|
|
|
@ -197,6 +197,8 @@ podman start -ai {project/container name}
|
||||||
|
|
||||||
## Additional packages to install as needed
|
## Additional packages to install as needed
|
||||||
|
|
||||||
|
**remember to enable them in plugings/nvim-lspconfig.lua**
|
||||||
|
|
||||||
### Perl lang
|
### Perl lang
|
||||||
|
|
||||||
For Perl language support run this command to install required packages for
|
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
|
:MasonInstall standardrb ruby-lsp solargraph
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### PHP
|
||||||
|
|
||||||
|
```bash
|
||||||
|
:MasonInstall php cs phpstan
|
||||||
|
```
|
||||||
|
|
||||||
## Inside vim
|
## Inside vim
|
||||||
|
|
||||||
```vim
|
```vim
|
||||||
|
|
|
@ -121,10 +121,6 @@ return {
|
||||||
--on_attach = on_attach,
|
--on_attach = on_attach,
|
||||||
--capabilities = capabilities,
|
--capabilities = capabilities,
|
||||||
--}
|
--}
|
||||||
require 'lspconfig'.sourcekit.setup {
|
|
||||||
on_attach = on_attach,
|
|
||||||
capabilities = capabilities,
|
|
||||||
}
|
|
||||||
require 'lspconfig'.bashls.setup {
|
require 'lspconfig'.bashls.setup {
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
|
@ -133,36 +129,10 @@ return {
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
}
|
}
|
||||||
require 'lspconfig'.intelephense.setup {
|
|
||||||
on_attach = on_attach,
|
|
||||||
capabilities = capabilities,
|
|
||||||
}
|
|
||||||
require 'lspconfig'.eslint.setup {
|
require 'lspconfig'.eslint.setup {
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
capabilities = capabilities,
|
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 {
|
require 'lspconfig'.cssls.setup {
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
|
@ -223,22 +193,6 @@ return {
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
capabilities = capabilities,
|
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 {
|
require 'lspconfig'.helm_ls.setup {
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
|
|
Loading…
Reference in a new issue