summaryrefslogtreecommitdiff
path: root/lua/lv-dashboard/init.lua
diff options
context:
space:
mode:
authorchristianchiarulli <[email protected]>2021-07-09 21:01:23 -0400
committerchristianchiarulli <[email protected]>2021-07-09 21:01:23 -0400
commitb8182d5aeecd50ad6a7d4f5b9b1a8ccbd8bbad02 (patch)
treeffd8fd765b36cf0f4dc353074bf31225beca67ce /lua/lv-dashboard/init.lua
parent0ce8dfd998f85e2b1dd6fa78643884a267460b0e (diff)
refactor plugin config
Diffstat (limited to 'lua/lv-dashboard/init.lua')
-rw-r--r--lua/lv-dashboard/init.lua38
1 files changed, 9 insertions, 29 deletions
diff --git a/lua/lv-dashboard/init.lua b/lua/lv-dashboard/init.lua
index 7e6fc060..b9e69ac1 100644
--- a/lua/lv-dashboard/init.lua
+++ b/lua/lv-dashboard/init.lua
@@ -3,37 +3,17 @@ local M = {}
M.config = function()
vim.g.dashboard_disable_at_vimenter = 0
- vim.g.dashboard_custom_header = O.dashboard.custom_header
+ vim.g.dashboard_custom_header = O.plugin.dashboard.custom_header
- vim.g.dashboard_default_executive = "telescope"
+ vim.g.dashboard_default_executive = O.plugin.dashboard.search_handler
- vim.g.dashboard_custom_section = {
- a = {
- description = { " Find File " },
- command = "Telescope find_files",
- },
- b = {
- description = { " Recently Used Files" },
- command = "Telescope oldfiles",
- },
- -- c = {
- -- description = { " Load Last Session " },
- -- command = "SessionLoad",
- -- },
- c = {
- description = { " Find Word " },
- command = "Telescope live_grep",
- },
- d = {
- description = { " Settings " },
- command = ":e " .. CONFIG_PATH .. "/lv-config.lua",
- },
- -- f = {
- -- description = { " Neovim Config Files" },
- -- command = "Telescope find_files cwd=" .. CONFIG_PATH,
- -- },
- -- e = {description = {'ï‚— Marks '}, command = 'Telescope marks'}
- }
+ vim.g.dashboard_custom_section = O.plugin.dashboard.custom_section
+
+ -- f = {
+ -- description = { " Neovim Config Files" },
+ -- command = "Telescope find_files cwd=" .. CONFIG_PATH,
+ -- },
+ -- e = {description = {'ï‚— Marks '}, command = 'Telescope marks'}
vim.cmd "let g:dashboard_session_directory = $HOME..'/.config/nvim/.sessions'"
vim.cmd "let packages = len(globpath('~/.local/share/nvim/site/pack/packer/start', '*', 0, 1))"