diff --git a/init.lua b/init.lua index 8433023..79d7198 100644 --- a/init.lua +++ b/init.lua @@ -5,7 +5,6 @@ require "misc-utils" require "top-bufferline" require "statusline" -require("colorizer").setup() require("neoscroll").setup() -- smooth scroll -- lsp stuff @@ -41,4 +40,3 @@ vim.api.nvim_exec( require "zenmode" require "whichkey" -require("nvim_comment").setup() diff --git a/lua/pluginList.lua b/lua/pluginList.lua index 8ece11f..6615f4c 100644 --- a/lua/pluginList.lua +++ b/lua/pluginList.lua @@ -7,7 +7,14 @@ return packer.startup( -- color related stuff 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 use { @@ -63,11 +70,16 @@ return packer.startup( require("nvim-autopairs").setup() 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 { "hrsh7th/vim-vsnip", event = "InsertCharPre" @@ -114,6 +126,7 @@ return packer.startup( use "karb94/neoscroll.nvim" use "kdav5758/TrueZen.nvim" use "folke/which-key.nvim" + -- use "alvan/vim-closetag" -- for html use { "lukas-reineke/indent-blankline.nvim",