diff options
author | christianchiarulli <[email protected]> | 2021-06-28 02:37:33 -0400 |
---|---|---|
committer | christianchiarulli <[email protected]> | 2021-06-28 02:37:33 -0400 |
commit | 36daa90e7476007ede1638c1aead995140dbb240 (patch) | |
tree | b08c7fe0289e40ef8fb2c5cc7ca87cb6bd4b88e5 /lua/lv-dashboard/init.lua | |
parent | 89ea86f0ae322fa9a207f03fcd6974c3ae9f35a2 (diff) |
more optional plugins
Diffstat (limited to 'lua/lv-dashboard/init.lua')
-rw-r--r-- | lua/lv-dashboard/init.lua | 112 |
1 files changed, 67 insertions, 45 deletions
diff --git a/lua/lv-dashboard/init.lua b/lua/lv-dashboard/init.lua index 6a57efe8..283fe564 100644 --- a/lua/lv-dashboard/init.lua +++ b/lua/lv-dashboard/init.lua @@ -1,45 +1,67 @@ --- vim.g.dashboard_custom_header = { --- '███╗ ██╗██╗ ██╗ ██████╗ ██████╗ ██████╗ ███████╗', --- '████╗ ██║██║ ██║██╔════╝██╔═══██╗██╔══██╗██╔════╝', --- '██╔██╗ ██║██║ ██║██║ ██║ ██║██║ ██║█████╗', --- '██║╚██╗██║╚██╗ ██╔╝██║ ██║ ██║██║ ██║██╔══╝', --- '██║ ╚████║ ╚████╔╝ ╚██████╗╚██████╔╝██████╔╝███████╗', --- '╚═╝ ╚═══╝ ╚═══╝ ╚═════╝ ╚═════╝ ╚═════╝ ╚══════╝' --- } --- vim.g.dashboard_custom_header = { --- --- ' _..._ ', --- ' .\' `. ██ ██ ██ ███ ██ █████ ██████ ██ ██ ██ ███ ███ ', --- ' : : ██ ██ ██ ████ ██ ██ ██ ██ ██ ██ ██ ██ ████ ████ ', --- ' : : ██ ██ ██ ██ ██ ██ ███████ ██████ ██ ██ ██ ██ ████ ██ ', --- ' `. .\' ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ', --- ' `-...-\' ███████ ██████ ██ ████ ██ ██ ██ ██ ████ ██ ██ ██ ', --- --- } - -vim.g.dashboard_custom_header = O.dashboard.custom_header - -vim.g.dashboard_default_executive = 'telescope' - -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'}, - d = {description = {' Find Word '}, command = 'Telescope live_grep'}, - e = {description = {' Settings '}, command = ':e '..CONFIG_PATH..'/lv-settings.lua'} - -- e = {description = {' Marks '}, command = 'Telescope marks'} -} - --- file_browser = {description = {' File Browser'}, command = 'Telescope find_files'}, - --- vim.g.dashboard_custom_shortcut = { --- a = 'f', --- find_word = 'SPC f a', --- last_session = 'SPC s l', --- new_file = 'SPC c n', --- book_marks = 'SPC f b' --- } --- find_history = 'SPC f h', - --- vim.g.dashboard_session_directory = CACHE_PATH..'/session' -vim.g.dashboard_custom_footer = O.dashboard.footer +local M = {} + +M.config = function() + -- vim.g.dashboard_custom_header = { + -- '███╗ ██╗██╗ ██╗ ██████╗ ██████╗ ██████╗ ███████╗', + -- '████╗ ██║██║ ██║██╔════╝██╔═══██╗██╔══██╗██╔════╝', + -- '██╔██╗ ██║██║ ██║██║ ██║ ██║██║ ██║█████╗', + -- '██║╚██╗██║╚██╗ ██╔╝██║ ██║ ██║██║ ██║██╔══╝', + -- '██║ ╚████║ ╚████╔╝ ╚██████╗╚██████╔╝██████╔╝███████╗', + -- '╚═╝ ╚═══╝ ╚═══╝ ╚═════╝ ╚═════╝ ╚═════╝ ╚══════╝' + -- } + -- vim.g.dashboard_custom_header = { + -- + -- ' _..._ ', + -- ' .\' `. ██ ██ ██ ███ ██ █████ ██████ ██ ██ ██ ███ ███ ', + -- ' : : ██ ██ ██ ████ ██ ██ ██ ██ ██ ██ ██ ██ ████ ████ ', + -- ' : : ██ ██ ██ ██ ██ ██ ███████ ██████ ██ ██ ██ ██ ████ ██ ', + -- ' `. .\' ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ', + -- ' `-...-\' ███████ ██████ ██ ████ ██ ██ ██ ██ ████ ██ ██ ██ ', + -- + -- } + vim.g.dashboard_disable_at_vimenter = 0 + + vim.g.dashboard_custom_header = O.dashboard.custom_header + + vim.g.dashboard_default_executive = 'telescope' + + 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' + }, + d = { + description = {' Find Word '}, + command = 'Telescope live_grep' + }, + e = { + description = {' Settings '}, + command = ':e ' .. CONFIG_PATH .. '/lv-settings.lua' + } + -- e = {description = {' Marks '}, command = 'Telescope marks'} + } + + -- file_browser = {description = {' File Browser'}, command = 'Telescope find_files'}, + + -- vim.g.dashboard_custom_shortcut = { + -- a = 'f', + -- find_word = 'SPC f a', + -- last_session = 'SPC s l', + -- new_file = 'SPC c n', + -- book_marks = 'SPC f b' + -- } + -- find_history = 'SPC f h', + + -- vim.g.dashboard_session_directory = CACHE_PATH..'/session' + vim.g.dashboard_custom_footer = O.dashboard.footer +end + +return M |