[nvim] do not install language servers with mason

it works badly on other architectures
This commit is contained in:
odrling 2024-03-11 22:29:51 +01:00
parent 9e1f2964a9
commit 727b7d1b6b
Signed by: odrling
GPG key ID: 2D8C2F151EDB7392
3 changed files with 5 additions and 4 deletions

View file

@ -4,7 +4,6 @@
(setup :mason {:ui {:border :rounded}
:PATH :append
:pip {:upgrade_pip true}})
(setup :mason-lspconfig {:automatic_installation true})
(local M {})

View file

@ -1,8 +1,6 @@
(import-macros {: setup} :macros)
(local mason_utils (require :config.lsp.mason))
(mason_utils.ensure_tools :stylua :mypy :shellcheck)
;; linter/formatter setup
(local null_ls (require :null-ls))
(local sources [null_ls.builtins.diagnostics.teal

View file

@ -30,4 +30,8 @@
; :workspace workspace
; :telemetry {:enable false}}}})
(mason_utils.setup_installed_servers :pyright :tsserver :vimls :ruff_lsp)
(local servers [:clangd :pyright :tsserver :ruff_lsp])
(each [_ server (ipairs servers)]
(setup_ls server))
(mason_utils.setup_installed_servers)