From 22c7c6ee059d664add9ef168ca93dfff453fb1ec Mon Sep 17 00:00:00 2001 From: jdhao Date: Sun, 19 Dec 2021 19:55:00 +0800 Subject: [PATCH] update plugin.lua --- lua/plugins.lua | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lua/plugins.lua b/lua/plugins.lua index 4006096..3381343 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -37,10 +37,6 @@ require("packer").startup({ -- nvim-cmp completion sources use {"hrsh7th/cmp-nvim-lsp", after = "nvim-cmp"} - - -- nvim-lsp configuration (it relies on cmp-nvim-lsp, so it should be loaded after cmp-nvim-lsp). - use({ "neovim/nvim-lspconfig", after = "cmp-nvim-lsp", config = [[require('config.lsp')]] }) - use {"hrsh7th/cmp-nvim-lua", after = "nvim-cmp"} use {"hrsh7th/cmp-path", after = "nvim-cmp"} use {"hrsh7th/cmp-buffer", after = "nvim-cmp"} @@ -50,6 +46,9 @@ require("packer").startup({ use {"hrsh7th/cmp-emoji", after = 'nvim-cmp'} end + -- nvim-lsp configuration (it relies on cmp-nvim-lsp, so it should be loaded after cmp-nvim-lsp). + use({ "neovim/nvim-lspconfig", after = "cmp-nvim-lsp", config = [[require('config.lsp')]] }) + if vim.g.is_mac then use({ "nvim-treesitter/nvim-treesitter", event = 'BufEnter', run = ":TSUpdate", config = [[require('config.treesitter')]] }) end