feat(dashboard): c on dahboard now opens telescope for config dir instead of useless init.lua

This commit is contained in:
Folke Lemaitre 2023-10-15 09:16:52 +02:00
parent 7c60431c58
commit 53e1637a86
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
5 changed files with 20 additions and 15 deletions

View file

@ -1,3 +1,5 @@
local Util = require("lazyvim.util")
return {
-- Better `vim.notify()`
{
@ -25,7 +27,6 @@ return {
},
init = function()
-- when noice is not enabled, install notify on VeryLazy
local Util = require("lazyvim.util")
if not Util.has("noice.nvim") then
Util.on_very_lazy(function()
vim.notify = require("notify")
@ -118,7 +119,6 @@ return {
lualine_require.require = require
local icons = require("lazyvim.config").icons
local Util = require("lazyvim.util")
vim.o.laststatus = vim.g.lualine_laststatus
@ -360,9 +360,9 @@ return {
{ action = "ene | startinsert", desc = " New file", icon = "", key = "n" },
{ action = "Telescope oldfiles", desc = " Recent files", icon = "", key = "r" },
{ action = "Telescope live_grep", desc = " Find text", icon = "", key = "g" },
{ action = "e $MYVIMRC", desc = " Config", icon = "", key = "c" },
{ action = Util.telescope.config_files(), desc = " Config", icon = "", key = "c" },
{ action = 'lua require("persistence").load()', desc = " Restore Session", icon = "", key = "s" },
{ action = "LazyExtras", desc = " Lazy Extras", icon = "", key = "e" },
{ action = "LazyExtras", desc = " Lazy Extras", icon = "", key = "x" },
{ action = "Lazy", desc = " Lazy", icon = "󰒲 ", key = "l" },
{ action = "qa", desc = " Quit", icon = "", key = "q" },
},