use mason for lsp install
This commit is contained in:
@@ -34,7 +34,6 @@ require('packer').init({
|
||||
return require('packer').startup(function()
|
||||
-- Packer can manage itself as an optional plugin
|
||||
use({ 'wbthomason/packer.nvim' })
|
||||
use({ 'neovim/nvim-lspconfig' })
|
||||
use({
|
||||
'nvim-treesitter/nvim-treesitter',
|
||||
run = ':TSUpdate',
|
||||
@@ -84,7 +83,6 @@ return require('packer').startup(function()
|
||||
})
|
||||
use({
|
||||
'hrsh7th/nvim-cmp',
|
||||
event = 'InsertEnter',
|
||||
requires = {
|
||||
{ 'hrsh7th/cmp-buffer', after = 'nvim-cmp' },
|
||||
{ 'hrsh7th/cmp-nvim-lsp', after = 'nvim-cmp' },
|
||||
@@ -134,6 +132,25 @@ return require('packer').startup(function()
|
||||
'p00f/clangd_extensions.nvim',
|
||||
},
|
||||
config = get_setup('lspinstall'),
|
||||
disable = true,
|
||||
})
|
||||
use {
|
||||
'williamboman/mason.nvim',
|
||||
requires = {
|
||||
'neovim/nvim-lspconfig',
|
||||
'williamboman/mason-lspconfig.nvim',
|
||||
},
|
||||
config = get_setup('my_mason')
|
||||
}
|
||||
use({
|
||||
'p00f/clangd_extensions.nvim'
|
||||
})
|
||||
use({
|
||||
'neovim/nvim-lspconfig',
|
||||
requires = {
|
||||
'p00f/clangd_extensions.nvim',
|
||||
},
|
||||
config = get_setup('my_lspconfig'),
|
||||
})
|
||||
use({
|
||||
'jose-elias-alvarez/null-ls.nvim',
|
||||
|
||||
Reference in New Issue
Block a user