config: change lsp_installer config

This commit is contained in:
2022-05-02 16:02:13 +08:00
parent 75c5d0b49b
commit 4c3ec532dc
+8 -9
View File
@@ -1,7 +1,7 @@
local fn = vim.fn
local install_path = fn.stdpath('data') .. '/site/pack/packer/start/packer.nvim'
if fn.empty(fn.glob(install_path)) > 0 then
packer_bootstrap = fn.system({ 'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim',
PACKER_BOOTSTRAP = fn.system({ 'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim',
install_path })
end
@@ -80,15 +80,14 @@ return packer.startup(function(use)
use { 'rafamadriz/friendly-snippets' } -- Snippets collection
-- LSP
use { 'neovim/nvim-lspconfig' -- config = function()
-- require('configs.plugins.lsp_installer')
-- end
}
use {
'williamboman/nvim-lsp-installer',
config = function()
require('configs.plugins.lsp_installer')
end
{
'neovim/nvim-lspconfig',
config = function()
require('configs.plugins.lsp_installer')
end
}
}
use { 'jose-elias-alvarez/null-ls.nvim',
config = function()
@@ -172,7 +171,7 @@ return packer.startup(function(use)
})
-- Automatically set up your configuration after cloning packer.nvim,
-- Put this at the end after all plugins
if packer_bootstrap then
if PACKER_BOOTSTRAP then
require('packer').sync()
end
end)