lazy load colorizer , nvim-commet

This commit is contained in:
siduck76 2021-06-26 07:50:10 +05:30
parent 247e6e06c5
commit f900ecaed3
2 changed files with 17 additions and 6 deletions

View File

@ -5,7 +5,6 @@ require "misc-utils"
require "top-bufferline" require "top-bufferline"
require "statusline" require "statusline"
require("colorizer").setup()
require("neoscroll").setup() -- smooth scroll require("neoscroll").setup() -- smooth scroll
-- lsp stuff -- lsp stuff
@ -41,4 +40,3 @@ vim.api.nvim_exec(
require "zenmode" require "zenmode"
require "whichkey" require "whichkey"
require("nvim_comment").setup()

View File

@ -7,7 +7,14 @@ return packer.startup(
-- color related stuff -- color related stuff
use "siduck76/nvim-base16.lua" use "siduck76/nvim-base16.lua"
use "norcalli/nvim-colorizer.lua"
use {
"norcalli/nvim-colorizer.lua",
event = "BufRead",
config = function()
require("colorizer").setup()
end
}
-- lang stuff -- lang stuff
use { use {
@ -63,11 +70,16 @@ return packer.startup(
require("nvim-autopairs").setup() require("nvim-autopairs").setup()
end end
} }
-- use "alvan/vim-closetag" -- for html
use "terrortylor/nvim-comment" -- snippet support use {
"terrortylor/nvim-comment",
cmd = "CommentToggle",
config = function()
require("nvim_comment").setup()
end
}
-- snippet -- snippet support
use { use {
"hrsh7th/vim-vsnip", "hrsh7th/vim-vsnip",
event = "InsertCharPre" event = "InsertCharPre"
@ -114,6 +126,7 @@ return packer.startup(
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"
-- use "alvan/vim-closetag" -- for html
use { use {
"lukas-reineke/indent-blankline.nvim", "lukas-reineke/indent-blankline.nvim",