aboutsummaryrefslogtreecommitdiff
path: root/lua/plugins.lua
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2021-10-18 21:56:32 +0800
committerjdhao <jdhao@hotmail.com>2021-10-18 21:57:06 +0800
commite2bcb7d8f40e399347c8e633e6cb4712d061c790 (patch)
tree4f6110beaf77beb3c77fad70bf4f75e53f67cf5a /lua/plugins.lua
parenta603ce3e4dc67512c986bcbe86d888ad80518213 (diff)
transition from nvim-compe to nvim-cmp
Diffstat (limited to 'lua/plugins.lua')
-rw-r--r--lua/plugins.lua14
1 files changed, 10 insertions, 4 deletions
diff --git a/lua/plugins.lua b/lua/plugins.lua
index e761d41..4d20175 100644
--- a/lua/plugins.lua
+++ b/lua/plugins.lua
@@ -27,10 +27,16 @@ require("packer").startup({
use({"wbthomason/packer.nvim", opt = true})
-- nvim-lsp configuration
- use({ "neovim/nvim-lspconfig", event = 'VimEnter', config = [[require('config.lsp')]] })
+ use({ "neovim/nvim-lspconfig", after = "cmp-nvim-lsp", config = [[require('config.lsp')]] })
-- auto-completion engine
- use({ "hrsh7th/nvim-compe", event = "InsertEnter *", config = [[require('config.compe')]] })
+ use {"hrsh7th/nvim-cmp", event = "InsertEnter", config = [[require('config.nvim-cmp')]]}
+
+ -- nvim-cmp completion sources
+ use {"hrsh7th/cmp-nvim-lsp", event = "VimEnter"}
+ use {"hrsh7th/cmp-path", after = "nvim-cmp"}
+ use {"quangnguyen30192/cmp-nvim-ultisnips", after = {'nvim-cmp', 'ultisnips'}}
+ use {"hrsh7th/cmp-emoji", after = 'nvim-cmp'}
if vim.g.is_mac then
use({ "nvim-treesitter/nvim-treesitter", event = 'BufEnter', run = ":TSUpdate", config = [[require('config.treesitter')]] })
@@ -57,7 +63,7 @@ require("packer").startup({
-- Super fast movement with vim-sneak
use({"justinmk/vim-sneak", event = "VimEnter"})
- use { 'phaazon/hop.nvim', as = 'hop', config = [[require('hop').setup()]] }
+ use { 'phaazon/hop.nvim', event = "VimEnter", config = [[require('hop').setup()]] }
-- Clear highlight search automatically for you
use({"romainl/vim-cool", event = "VimEnter"})
@@ -306,7 +312,7 @@ require("packer").startup({
use("gelguy/wilder.nvim")
-- showing keybindings
- use {"folke/which-key.nvim", config = [[require('config.which-key')]]}
+ use {"folke/which-key.nvim", event = "VimEnter", config = [[require('config.which-key')]]}
end,
config = {
max_jobs = 16,