summaryrefslogtreecommitdiff
path: root/lua/plugins.lua
diff options
context:
space:
mode:
authorChristian Chiarulli <[email protected]>2021-09-07 19:23:14 -0400
committerGitHub <[email protected]>2021-09-07 19:23:14 -0400
commit9ece2e5369de46962422837be3dce3b8e889805d (patch)
tree3b269a792b550c8b0377967170534e4f157d3523 /lua/plugins.lua
parent151684bba11b702907e58d2acdd41ebc69c27809 (diff)
feat: compe -> cmp (#1496)
Diffstat (limited to 'lua/plugins.lua')
-rw-r--r--lua/plugins.lua44
1 files changed, 16 insertions, 28 deletions
diff --git a/lua/plugins.lua b/lua/plugins.lua
index ef9ae041..be614c5f 100644
--- a/lua/plugins.lua
+++ b/lua/plugins.lua
@@ -24,49 +24,36 @@ return {
end,
disable = not lvim.builtin.telescope.active,
},
-
- -- Completion & Snippets
+ -- Install nvim-cmp, and buffer source as a dependency
{
- "hrsh7th/nvim-compe",
- event = "InsertEnter",
+ "hrsh7th/nvim-cmp",
config = function()
- require("core.compe").setup()
+ require("core.cmp").setup()
end,
- disable = not lvim.builtin.compe.active,
- -- wants = "vim-vsnip",
- -- requires = {
- -- {
- -- "hrsh7th/vim-vsnip",
- -- wants = "friendly-snippets",
- -- event = "InsertCharPre",
- -- },
- -- {
- -- "rafamadriz/friendly-snippets",
- -- event = "InsertCharPre",
- -- },
- -- },
- },
- {
- "hrsh7th/vim-vsnip",
- -- wants = "friendly-snippets",
- event = "InsertEnter",
- disable = not lvim.builtin.compe.active,
+ requires = {
+ "L3MON4D3/LuaSnip",
+ "saadparwaiz1/cmp_luasnip",
+ "hrsh7th/cmp-buffer",
+ "hrsh7th/cmp-nvim-lsp",
+ "hrsh7th/cmp-path",
+ "hrsh7th/cmp-nvim-lua",
+ },
},
{
"rafamadriz/friendly-snippets",
- event = "InsertCharPre",
- disable = not lvim.builtin.compe.active,
+ -- event = "InsertCharPre",
+ -- disable = not lvim.builtin.compe.active,
},
-- Autopairs
{
"windwp/nvim-autopairs",
-- event = "InsertEnter",
- after = "nvim-compe",
+ after = "nvim-cmp",
config = function()
require("core.autopairs").setup()
end,
- disable = not lvim.builtin.autopairs.active or not lvim.builtin.compe.active,
+ disable = not lvim.builtin.autopairs.active,
},
-- Treesitter
@@ -98,6 +85,7 @@ return {
require("core.gitsigns").setup()
end,
event = "BufRead",
+ commit = "25d4b182ece5b03cd4b2d8c196f3c38e0df58801",
disable = not lvim.builtin.gitsigns.active,
},