Fix mason lspconfig startup errors

This commit is contained in:
Tyler Hallada 2023-12-01 15:26:01 -05:00
parent 6bd5e48655
commit 310045fbef
4 changed files with 12 additions and 18 deletions

View File

@ -23,6 +23,11 @@ return require('packer').startup(function(use)
use 'nvim-lua/plenary.nvim' use 'nvim-lua/plenary.nvim'
use { use {
'neovim/nvim-lspconfig', 'neovim/nvim-lspconfig',
requires = {
'williamboman/mason.nvim',
'williamboman/mason-lspconfig.nvim',
'hrsh7th/cmp-nvim-lsp',
},
config = function() config = function()
require('plugins.lsp') require('plugins.lsp')
end, end,
@ -64,18 +69,6 @@ return require('packer').startup(function(use)
'petertriho/cmp-git', 'petertriho/cmp-git',
requires = 'nvim-lua/plenary.nvim', requires = 'nvim-lua/plenary.nvim',
} }
use {
'williamboman/mason.nvim',
config = function()
require('plugins.mason-nvim')
end,
}
use {
'williamboman/mason-lspconfig.nvim',
config = function()
require('plugins.mason-lspconfig-nvim')
end,
}
use { use {
'rmagatti/goto-preview', 'rmagatti/goto-preview',
config = function() config = function()

View File

@ -1,3 +1,10 @@
require('mason').setup({
max_concurrent_installers = 10,
})
require('mason-lspconfig').setup({
automatic_installation = true,
})
local on_attach = require('plugins.lsp.on_attach') local on_attach = require('plugins.lsp.on_attach')
-- Mappings. -- Mappings.
-- See `:help vim.diagnostic.*` for documentation on any of the below functions -- See `:help vim.diagnostic.*` for documentation on any of the below functions

View File

@ -1,3 +0,0 @@
require('mason-lspconfig').setup({
automatic_installation = true,
})

View File

@ -1,3 +0,0 @@
require('mason').setup({
max_concurrent_installers = 10,
})