Neovim: add open project to dashboard

This commit is contained in:
Marko Korhonen 2024-08-20 12:40:07 +03:00
parent b2a6de7ebc
commit 016c02a449
Signed by: FunctionalHacker
GPG key ID: A7F78BCB859CD890
2 changed files with 8 additions and 3 deletions

View file

@ -14,9 +14,14 @@ return {
[[ \/_/\/_/\/____/\/___/ \/__/ \/_/\/_/\/_/\/_/]],
}
dashboard.section.buttons.val = {
dashboard.button(
"<leader>p",
"📽 Open a project",
":lua require('telescope').extensions.project.project()<CR>"
),
dashboard.button("e", " New file", ":ene <BAR> startinsert <CR>"),
dashboard.button("<C-f>", "🔍 Find file", "<cmd>Telescope find_files<cr>"),
dashboard.button("<C-g>", "𑪢 Grep files", "<cmd>Telescope live_grep<cr>"),
dashboard.button("<C-f>", "🔍 Find file", "<cmd>Telescope find_files<CR>"),
dashboard.button("<C-g>", "𑪢 Grep files", "<cmd>Telescope live_grep<CR>"),
dashboard.button("l", "🛋 Lazy", ":Lazy<CR>"),
dashboard.button("m", "📦 Mason", ":Mason<CR>"),
dashboard.button("q", "ꭙ Quit NeoVim", ":qa<CR>"),

View file

@ -87,7 +87,7 @@ return {
builtin.live_grep,
},
{
desc = "Change to a project",
desc = "Open a project",
"<leader>p",
extensions.project.project,
},