Fix mason lspconfig startup errors

This commit is contained in:
Tyler Hallada 2023-04-18 01:12:29 -04:00
parent 05c133264b
commit 2abcc359fa
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 {
'neovim/nvim-lspconfig',
requires = {
'williamboman/mason.nvim',
'williamboman/mason-lspconfig.nvim',
'hrsh7th/cmp-nvim-lsp',
},
config = function()
require('plugins.lsp')
end,
@ -64,18 +69,6 @@ return require('packer').startup(function(use)
'petertriho/cmp-git',
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 {
'rmagatti/goto-preview',
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')
-- Mappings.
-- 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,
})