mirror of
https://github.com/LazyVim/starter.git
synced 2026-07-25 14:01:03 +00:00
Install mason - lsp server installer
This commit is contained in:
parent
2d12fcf604
commit
3777c27873
1 changed files with 24 additions and 1 deletions
|
|
@ -33,12 +33,35 @@ local config = function(_, opts)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"neovim/nvim-lspconfig",
|
"neovim/nvim-lspconfig",
|
||||||
dependencies = {
|
dependencies = {
|
||||||
-- "hrsh7th/cmp-nvim-lsp",
|
-- "hrsh7th/cmp-nvim-lsp",
|
||||||
'saghen/blink.cmp'
|
'saghen/blink.cmp',
|
||||||
|
{
|
||||||
|
"williamboman/mason.nvim",
|
||||||
|
build = ":MasonUpdate",
|
||||||
|
config = true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"williamboman/mason-lspconfig.nvim",
|
||||||
|
dependencies = { "neovim/nvim-lspconfig" },
|
||||||
|
config = function()
|
||||||
|
require("mason-lspconfig").setup {
|
||||||
|
ensure_installed = {
|
||||||
|
"ruby_lsp",
|
||||||
|
"ts_ls",
|
||||||
|
"html",
|
||||||
|
"cssls",
|
||||||
|
"dartls",
|
||||||
|
"lua_ls",
|
||||||
|
},
|
||||||
|
automatic_installation = true,
|
||||||
|
}
|
||||||
|
end,
|
||||||
|
}
|
||||||
},
|
},
|
||||||
opts = {
|
opts = {
|
||||||
servers = {
|
servers = {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue