update dashboard

This commit is contained in:
asep komarudin 2023-01-15 06:07:14 +07:00
parent f1e6c8c266
commit 5b9e88f83f
4 changed files with 4 additions and 3 deletions

View file

@ -49,7 +49,7 @@ return {
{ {
"numToStr/Comment.nvim", "numToStr/Comment.nvim",
commit = "97a188a98b5a3a6f9b1b850799ac078faa17ab67", commit = "97a188a98b5a3a6f9b1b850799ac078faa17ab67",
event = "BufReadPost", event = "InsertEnter",
init = function() init = function()
require("user.comment") require("user.comment")
end, end,
@ -183,7 +183,7 @@ return {
}, },
{ {
"NvChad/nvim-colorizer.lua", "NvChad/nvim-colorizer.lua",
event = "BufWinEnter", event = "VeryLazy",
opts = function() opts = function()
require("user.colorizer") require("user.colorizer")
end, end,

View file

@ -21,6 +21,7 @@ dashboard.section.buttons.val = {
dashboard.button("r", " Recently used files", ":Telescope oldfiles <CR>"), dashboard.button("r", " Recently used files", ":Telescope oldfiles <CR>"),
dashboard.button("t", " Find text", ":Telescope live_grep <CR>"), dashboard.button("t", " Find text", ":Telescope live_grep <CR>"),
dashboard.button("c", " Configuration", ":e $MYVIMRC <CR>"), dashboard.button("c", " Configuration", ":e $MYVIMRC <CR>"),
dashboard.button("z", "鈴 Lazy", ":Lazy<CR>"),
dashboard.button("q", " Quit Neovim", ":qa<CR>"), dashboard.button("q", " Quit Neovim", ":qa<CR>"),
} }
@ -42,4 +43,3 @@ dashboard.section.buttons.opts.hl = "Keyword"
dashboard.opts.opts.noautocmd = true dashboard.opts.opts.noautocmd = true
-- vim.cmd([[autocmd User AlphaReady echo 'ready']]) -- vim.cmd([[autocmd User AlphaReady echo 'ready']])
alpha.setup(dashboard.opts) alpha.setup(dashboard.opts)

View file

@ -113,6 +113,7 @@ local mappings = {
}, },
["F"] = { "<cmd>Telescope live_grep theme=ivy<cr>", "Find Text" }, ["F"] = { "<cmd>Telescope live_grep theme=ivy<cr>", "Find Text" },
["P"] = { "<cmd>lua require('telescope').extensions.projects.projects()<cr>", "Projects" }, ["P"] = { "<cmd>lua require('telescope').extensions.projects.projects()<cr>", "Projects" },
["z"] = { "<cmd>Lazy<cr>", "Lazy" },
["/"] = { ["/"] = {
function() function()