snippets are back and lazyloades

This commit is contained in:
christianchiarulli 2021-06-28 03:26:45 -04:00
parent 9d11c74503
commit 6ef944b132

View file

@ -46,12 +46,15 @@ return require("packer").startup(function(use)
-- Autocomplete -- Autocomplete
use { use {
"hrsh7th/nvim-compe", "hrsh7th/nvim-compe",
event = "InsertEnter",
config = function() config = function()
require("lv-compe").config() require("lv-compe").config()
end, end,
event = "InsertEnter"
} }
use {"hrsh7th/vim-vsnip", event = "InsertCharPre"}
use {"rafamadriz/friendly-snippets", event = "InsertEnter"}
-- Treesitter -- Treesitter
use {"nvim-treesitter/nvim-treesitter", run = ":TSUpdate"} 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 -- extras, these do not load by default
@ -143,19 +146,22 @@ return require("packer").startup(function(use)
disable = not O.plugin.dashboard.active, disable = not O.plugin.dashboard.active,
opt = true opt = true
} }
-- Zen Mode TODO this don't work with whichkey might gave to make this built in -- Zen Mode TODO this don't work with whichkey might gave to make this built in
use { use {
"Pocco81/TrueZen.nvim", "Pocco81/TrueZen.nvim",
event = 'BufRead', -- event = 'BufEnter',
-- cmd = {"TZAtaraxis", "TZMinimalist"}, cmd = {"TZAtaraxis"},
config = function() config = function()
require('lv-zen').config() require('lv-zen').config()
end, end
-- event = "BufEnter"
-- disable = not O.plugin.zen.active, -- disable = not O.plugin.zen.active,
} }
-- matchup -- matchup
use {'andymass/vim-matchup', use {
'andymass/vim-matchup',
event = "CursorMoved", event = "CursorMoved",
config = function() config = function()
require('lv-matchup').config() require('lv-matchup').config()
@ -164,9 +170,6 @@ return require("packer").startup(function(use)
opt = true opt = true
} }
-- -- Snippets
-- use {"rafamadriz/friendly-snippets", opt = true}
-- -- Colorizer -- -- Colorizer
-- use {'norcalli/nvim-colorizer.lua', opt = true} -- use {'norcalli/nvim-colorizer.lua', opt = true}