summaryrefslogtreecommitdiff
path: root/lua/plugins.lua
diff options
context:
space:
mode:
authorchristianchiarulli <[email protected]>2021-06-28 03:26:45 -0400
committerchristianchiarulli <[email protected]>2021-06-28 03:26:45 -0400
commit6ef944b132da3506b7d73f2d78eba4a24d04f851 (patch)
tree12617644967f49ce89203a21c499c5bd72e6365d /lua/plugins.lua
parent9d11c74503f33d1ec92584baa2c3cf8bfd328933 (diff)
snippets are back and lazyloades
Diffstat (limited to 'lua/plugins.lua')
-rw-r--r--lua/plugins.lua21
1 files changed, 12 insertions, 9 deletions
diff --git a/lua/plugins.lua b/lua/plugins.lua
index b617c085..0f7d233c 100644
--- a/lua/plugins.lua
+++ b/lua/plugins.lua
@@ -46,12 +46,15 @@ return require("packer").startup(function(use)
-- Autocomplete
use {
"hrsh7th/nvim-compe",
+ event = "InsertEnter",
config = function()
require("lv-compe").config()
end,
- event = "InsertEnter"
}
+ use {"hrsh7th/vim-vsnip", event = "InsertCharPre"}
+ use {"rafamadriz/friendly-snippets", event = "InsertEnter"}
+
-- Treesitter
use {"nvim-treesitter/nvim-treesitter", run = ":TSUpdate"}
@@ -108,7 +111,7 @@ return require("packer").startup(function(use)
}
- use {"hrsh7th/vim-vsnip"}
+ -- use {"hrsh7th/vim-vsnip"}
-- extras, these do not load by default
@@ -143,19 +146,22 @@ return require("packer").startup(function(use)
disable = not O.plugin.dashboard.active,
opt = true
}
+
-- Zen Mode TODO this don't work with whichkey might gave to make this built in
use {
"Pocco81/TrueZen.nvim",
- event = 'BufRead',
- -- cmd = {"TZAtaraxis", "TZMinimalist"},
+ -- event = 'BufEnter',
+ cmd = {"TZAtaraxis"},
config = function()
require('lv-zen').config()
- end,
+ end
+ -- event = "BufEnter"
-- disable = not O.plugin.zen.active,
}
-- matchup
- use {'andymass/vim-matchup',
+ use {
+ 'andymass/vim-matchup',
event = "CursorMoved",
config = function()
require('lv-matchup').config()
@@ -164,9 +170,6 @@ return require("packer").startup(function(use)
opt = true
}
- -- -- Snippets
- -- use {"rafamadriz/friendly-snippets", opt = true}
-
-- -- Colorizer
-- use {'norcalli/nvim-colorizer.lua', opt = true}