Fix mason lspconfig startup errors
This commit is contained in:
parent
05c133264b
commit
2abcc359fa
@ -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()
|
||||
|
@ -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
|
||||
|
@ -1,3 +0,0 @@
|
||||
require('mason-lspconfig').setup({
|
||||
automatic_installation = true,
|
||||
})
|
@ -1,3 +0,0 @@
|
||||
require('mason').setup({
|
||||
max_concurrent_installers = 10,
|
||||
})
|
Loading…
Reference in New Issue
Block a user