diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua index 7c4d8f3..7339591 100644 --- a/lua/plugins/init.lua +++ b/lua/plugins/init.lua @@ -49,7 +49,7 @@ return { { "numToStr/Comment.nvim", commit = "97a188a98b5a3a6f9b1b850799ac078faa17ab67", - event = "BufReadPost", + event = "InsertEnter", init = function() require("user.comment") end, @@ -183,7 +183,7 @@ return { }, { "NvChad/nvim-colorizer.lua", - event = "BufWinEnter", + event = "VeryLazy", opts = function() require("user.colorizer") end, diff --git a/lua/plugins/treesitter_________.lua b/lua/plugins/treesitter_20230115.lua similarity index 100% rename from lua/plugins/treesitter_________.lua rename to lua/plugins/treesitter_20230115.lua diff --git a/lua/user/alpha.lua b/lua/user/alpha.lua index 8484f5d..bada5e9 100644 --- a/lua/user/alpha.lua +++ b/lua/user/alpha.lua @@ -21,6 +21,7 @@ dashboard.section.buttons.val = { dashboard.button("r", " Recently used files", ":Telescope oldfiles "), dashboard.button("t", " Find text", ":Telescope live_grep "), dashboard.button("c", " Configuration", ":e $MYVIMRC "), + dashboard.button("z", "鈴 Lazy", ":Lazy"), dashboard.button("q", " Quit Neovim", ":qa"), } @@ -42,4 +43,3 @@ dashboard.section.buttons.opts.hl = "Keyword" dashboard.opts.opts.noautocmd = true -- vim.cmd([[autocmd User AlphaReady echo 'ready']]) alpha.setup(dashboard.opts) - diff --git a/lua/user/whichkey.lua b/lua/user/whichkey.lua index a36d7a5..5a1bec8 100644 --- a/lua/user/whichkey.lua +++ b/lua/user/whichkey.lua @@ -113,6 +113,7 @@ local mappings = { }, ["F"] = { "Telescope live_grep theme=ivy", "Find Text" }, ["P"] = { "lua require('telescope').extensions.projects.projects()", "Projects" }, + ["z"] = { "Lazy", "Lazy" }, ["/"] = { function()