lazy loading : vsnip

This commit is contained in:
siduck76 2021-06-24 22:51:39 +05:30
parent e771a32ab8
commit 7464358bbf

View file

@ -14,7 +14,7 @@ return packer.startup(
use "nvim-treesitter/nvim-treesitter" use "nvim-treesitter/nvim-treesitter"
use "neovim/nvim-lspconfig" use "neovim/nvim-lspconfig"
-- loads compe and vsnip in insert mode only -- load compe in insert mode only
use { use {
"hrsh7th/nvim-compe", "hrsh7th/nvim-compe",
event = "InsertEnter", event = "InsertEnter",
@ -38,7 +38,10 @@ return packer.startup(
use "terrortylor/nvim-comment" use "terrortylor/nvim-comment"
-- snippet support -- snippet support
use "hrsh7th/vim-vsnip" use {
"hrsh7th/vim-vsnip",
event = "InsertCharPre"
}
use "rafamadriz/friendly-snippets" use "rafamadriz/friendly-snippets"
-- file managing , picker etc -- file managing , picker etc
@ -51,7 +54,15 @@ return packer.startup(
-- misc -- misc
use "glepnir/dashboard-nvim" use "glepnir/dashboard-nvim"
use "tweekmonster/startuptime.vim" use "tweekmonster/startuptime.vim"
use "907th/vim-auto-save"
-- load autosave plugin only if its globally enabled
use {
"907th/vim-auto-save",
cond = function()
return vim.g.auto_save == 1
end
}
use "karb94/neoscroll.nvim" use "karb94/neoscroll.nvim"
use "kdav5758/TrueZen.nvim" use "kdav5758/TrueZen.nvim"
use "folke/which-key.nvim" use "folke/which-key.nvim"