summaryrefslogtreecommitdiff
path: root/lua/plugins.lua
diff options
context:
space:
mode:
authorchristianchiarulli <[email protected]>2021-07-25 23:28:47 -0400
committerchristianchiarulli <[email protected]>2021-07-25 23:28:47 -0400
commite6f4b20346f4257f065b18ffa3cf1ff34e0f0b56 (patch)
tree1cd557a8e4596e822b258ec5d905f55fe39b4eba /lua/plugins.lua
parentaa356858ef18b54a5744a7a89ee4df7a5976bcd7 (diff)
autoindent issue solved finally
Diffstat (limited to 'lua/plugins.lua')
-rw-r--r--lua/plugins.lua32
1 files changed, 26 insertions, 6 deletions
diff --git a/lua/plugins.lua b/lua/plugins.lua
index 7d2356d5..62450b1d 100644
--- a/lua/plugins.lua
+++ b/lua/plugins.lua
@@ -32,21 +32,46 @@ return {
},
-- Autocomplete
+ -- {
+ -- "hrsh7th/nvim-compe",
+ -- event = "InsertEnter",
+ -- config = function()
+ -- require("core.compe").setup()
+ -- if lvim.builtin.compe.on_config_done then
+ -- lvim.builtin.compe.on_config_done(require "compe")
+ -- end
+ -- end,
+ -- },
+
+ -- Completion & Snippets
{
"hrsh7th/nvim-compe",
- -- event = "InsertEnter",
+ event = "InsertEnter",
config = function()
require("core.compe").setup()
if lvim.builtin.compe.on_config_done then
lvim.builtin.compe.on_config_done(require "compe")
end
end,
+ wants = "vim-vsnip",
+ requires = {
+ {
+ "hrsh7th/vim-vsnip",
+ wants = "friendly-snippets",
+ event = "InsertCharPre",
+ },
+ {
+ "rafamadriz/friendly-snippets",
+ event = "InsertCharPre",
+ },
+ },
},
-- Autopairs
{
"windwp/nvim-autopairs",
-- event = "InsertEnter",
+ after = "nvim-compe",
config = function()
require "core.autopairs"
if lvim.builtin.autopairs.on_config_done then
@@ -55,11 +80,6 @@ return {
end,
},
- -- Snippets
-
- { "hrsh7th/vim-vsnip", event = "InsertEnter" },
- { "rafamadriz/friendly-snippets", event = "InsertEnter" },
-
-- Treesitter
{
"nvim-treesitter/nvim-treesitter",