diff options
author | Francisco Suárez <[email protected]> | 2021-05-04 21:02:55 -0500 |
---|---|---|
committer | GitHub <[email protected]> | 2021-05-04 22:02:55 -0400 |
commit | db2b17be723483c6406234e4017ade9b772a9bbf (patch) | |
tree | 403aac3a675014a7f66c56828c31eab4ca3f5547 /lua | |
parent | d4a3e948a002635343e5e70813257da9046d3405 (diff) |
✨ Change dashboard header and footer by user (#363)
* :sparkles: ability to change dashboard header and footer.
* :sparkles: lv-settings adapted.
* comment to keep original one by default.
Diffstat (limited to 'lua')
-rw-r--r-- | lua/lv-dashboard/init.lua | 14 | ||||
-rw-r--r-- | lua/lv-globals.lua | 14 |
2 files changed, 15 insertions, 13 deletions
diff --git a/lua/lv-dashboard/init.lua b/lua/lv-dashboard/init.lua index c6ed0b5d..4bd706f3 100644 --- a/lua/lv-dashboard/init.lua +++ b/lua/lv-dashboard/init.lua @@ -17,17 +17,7 @@ -- -- } -vim.g.dashboard_custom_header = { - -' _..._ ', -' .\' (_`. _ __ ___ ', -' : . : | | _ _ _ __ __ _ _ _\\ \\ / (_)_ __ ___ ', -' :) () : | | | | | | \'_ \\ / _` | \'__\\ \\ / /| | \'_ ` _ \\ ', -' `. . .\' | |__| |_| | | | | (_| | | \\ V / | | | | | | |', -' `-...-\' |_____\\__,_|_| |_|\\__,_|_| \\_/ |_|_| |_| |_|', - -} - +vim.g.dashboard_custom_header = O.dashboard.custom_header vim.g.dashboard_default_executive = 'telescope' @@ -52,4 +42,4 @@ vim.g.dashboard_custom_section = { -- find_history = 'SPC f h', -- vim.g.dashboard_session_directory = '~/.cache/nvim/session' -vim.g.dashboard_custom_footer = {'chrisatmachine.com'} +vim.g.dashboard_custom_footer = O.dashboard.footer diff --git a/lua/lv-globals.lua b/lua/lv-globals.lua index 906fb5d0..c284d826 100644 --- a/lua/lv-globals.lua +++ b/lua/lv-globals.lua @@ -61,9 +61,21 @@ O = { ruby = { diagnostics = {virtualtext = {spacing = 0, prefix = "ï„‘"}, signs = true, underline = true}, filetypes = {'rb', 'erb', 'rakefile'} - } + }, -- css = {formatter = '', autoformat = false, virtual_text = true}, -- json = {formatter = '', autoformat = false, virtual_text = true} + + dashboard = { + custom_header = { +' _..._ ', +' .\' (_`. _ __ ___ ', +' : . : | | _ _ _ __ __ _ _ _\\ \\ / (_)_ __ ___ ', +' :) () : | | | | | | \'_ \\ / _` | \'__\\ \\ / /| | \'_ ` _ \\ ', +' `. . .\' | |__| |_| | | | | (_| | | \\ V / | | | | | | |', +' `-...-\' |_____\\__,_|_| |_|\\__,_|_| \\_/ |_|_| |_| |_|', + }, + footer= {'chrisatmachine.com'} + } } DATA_PATH = vim.fn.stdpath('data') |