aboutsummaryrefslogtreecommitdiff
path: root/lua/plugins.lua
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2021-12-19 19:55:00 +0800
committerjdhao <jdhao@hotmail.com>2021-12-19 19:55:00 +0800
commit22c7c6ee059d664add9ef168ca93dfff453fb1ec (patch)
tree45821a8535dd6df0602a63030dc60dd566bf88d0 /lua/plugins.lua
parent3d0f00e7e435ca90ec85fa6f3a625029be3c9770 (diff)
update plugin.lua
Diffstat (limited to 'lua/plugins.lua')
-rw-r--r--lua/plugins.lua7
1 files 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