fix: astronvim - install lsp via home-manager instead of mason.nvim

This commit is contained in:
Ryan Yin
2023-07-13 23:28:32 +08:00
parent 4abe5d7b8d
commit cf9b184c9f

View File

@@ -40,19 +40,19 @@ return {
{ import = "astrocommunity.pack.yaml" }, { import = "astrocommunity.pack.yaml" },
{ import = "astrocommunity.pack.toml" }, { import = "astrocommunity.pack.toml" },
---- Backend ---- Backend
{ import = "astrocommunity.pack.lua" },
{ import = "astrocommunity.pack.go" }, { import = "astrocommunity.pack.go" },
{ import = "astrocommunity.pack.rust" }, { import = "astrocommunity.pack.rust" },
{ import = "astrocommunity.pack.python" }, { import = "astrocommunity.pack.python" },
{ import = "astrocommunity.pack.java" }, { import = "astrocommunity.pack.java" },
{ import = "astrocommunity.pack.nix" }, { import = "astrocommunity.pack.nix" },
{ import = "astrocommunity.pack.proto" }, { import = "astrocommunity.pack.proto" },
{ import = "astrocommunity.pack.terraform" },
---- Operation & Cloud Native ---- Operation & Cloud Native
{ import = "astrocommunity.pack.terraform" },
{ import = "astrocommunity.pack.bash" }, { import = "astrocommunity.pack.bash" },
{ import = "astrocommunity.pack.cmake" }, { import = "astrocommunity.pack.cmake" },
{ import = "astrocommunity.pack.cpp" }, { import = "astrocommunity.pack.cpp" },
{ import = "astrocommunity.pack.docker" }, { import = "astrocommunity.pack.docker" },
{ import = "astrocommunity.pack.lua" },
-- File explorer(Custom configs) -- File explorer(Custom configs)
{ {
@@ -96,13 +96,19 @@ return {
{ {
"jay-babu/mason-null-ls.nvim", "jay-babu/mason-null-ls.nvim",
-- ensure_installed nothing -- ensure_installed nothing
opts = function(_, opts) opts.ensure_installed = {} end, opts = function(_, opts)
opts.ensure_installed = nil
opts.automatic_installation = false
end,
}, },
-- Debugger installationl -- Debugger installationl
{ {
"jay-babu/mason-nvim-dap.nvim", "jay-babu/mason-nvim-dap.nvim",
-- overrides `require("mason-nvim-dap").setup(...)` -- overrides `require("mason-nvim-dap").setup(...)`
opts = function(_, opts) opts.ensure_installed = {} end, opts = function(_, opts)
opts.ensure_installed = nil
opts.automatic_installation = false
end,
}, },
}, },
@@ -129,13 +135,37 @@ return {
}, },
-- enable servers that installed by home-manager instead of mason -- enable servers that installed by home-manager instead of mason
servers = { servers = {
"dockerls", ---- Frontend & NodeJS
"jsonnet_ls", -- jsonnet language server "tsserver", -- typescript/javascript language server
"terraformls", "tailwindcss", -- tailwindcss language server
"html", -- html language server
"cssls", -- css language server
"prismals", -- prisma language server
"volar", -- vue language server
---- Configuration Language
"marksman", -- markdown ls
"json_ls", -- json language server
"yamlls", -- yaml language server
"toml", -- toml language server
---- Backend
"lua_ls", -- lua
"gopls", -- go
"rust_analyzer", -- rust
"pyright", -- python
"jdtls", -- java
"nil_ls", -- nix language server
"bufls", -- protocol buffer language server
---- Operation & Cloud Native
"bashls", -- bash
"clojure_lsp", -- cmake
"clangd", -- c/c++
"dockerls", -- dockerfile
"jsonnet_ls", -- jsonnet language server
"terraformls", -- terraform hcl
}, },
formatting = { formatting = {
disabled = { disabled = {
-- use null-ls' gofumpt/goimports instead -- use null-ls' goimports instead
-- https://github.com/golang/tools/pull/410 -- https://github.com/golang/tools/pull/410
"gopls", "gopls",
-- use null-ls' prettier instead -- use null-ls' prettier instead