From 3777c278734de2f7630ede839e7f5f94882567fa Mon Sep 17 00:00:00 2001 From: Marcelo Jacobus Date: Thu, 9 Oct 2025 12:01:53 -0300 Subject: [PATCH] Install mason - lsp server installer --- lua/plugins/lsp.lua | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua index ffb78b0..bc01bb6 100644 --- a/lua/plugins/lsp.lua +++ b/lua/plugins/lsp.lua @@ -33,12 +33,35 @@ local config = function(_, opts) end end + return { { "neovim/nvim-lspconfig", dependencies = { -- "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 = { servers = {