Change dashboard header and footer by user (#363)

*  ability to change dashboard header and footer.

*  lv-settings adapted.

* comment to keep original one by default.
This commit is contained in:
Francisco Suárez 2021-05-04 21:02:55 -05:00 committed by GitHub
parent d4a3e948a0
commit db2b17be72
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 13 deletions

View file

@ -17,17 +17,7 @@
-- --
-- } -- }
vim.g.dashboard_custom_header = { vim.g.dashboard_custom_header = O.dashboard.custom_header
' _..._ ',
' .\' (_`. _ __ ___ ',
' : . : | | _ _ _ __ __ _ _ _\\ \\ / (_)_ __ ___ ',
' :) () : | | | | | | \'_ \\ / _` | \'__\\ \\ / /| | \'_ ` _ \\ ',
' `. . .\' | |__| |_| | | | | (_| | | \\ V / | | | | | | |',
' `-...-\' |_____\\__,_|_| |_|\\__,_|_| \\_/ |_|_| |_| |_|',
}
vim.g.dashboard_default_executive = 'telescope' vim.g.dashboard_default_executive = 'telescope'
@ -52,4 +42,4 @@ vim.g.dashboard_custom_section = {
-- find_history = 'SPC f h', -- find_history = 'SPC f h',
-- vim.g.dashboard_session_directory = '~/.cache/nvim/session' -- vim.g.dashboard_session_directory = '~/.cache/nvim/session'
vim.g.dashboard_custom_footer = {'chrisatmachine.com'} vim.g.dashboard_custom_footer = O.dashboard.footer

View file

@ -61,9 +61,21 @@ O = {
ruby = { ruby = {
diagnostics = {virtualtext = {spacing = 0, prefix = ""}, signs = true, underline = true}, diagnostics = {virtualtext = {spacing = 0, prefix = ""}, signs = true, underline = true},
filetypes = {'rb', 'erb', 'rakefile'} filetypes = {'rb', 'erb', 'rakefile'}
} },
-- css = {formatter = '', autoformat = false, virtual_text = true}, -- css = {formatter = '', autoformat = false, virtual_text = true},
-- json = {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') DATA_PATH = vim.fn.stdpath('data')

View file

@ -13,6 +13,10 @@ O.colorscheme = 'lunar'
O.auto_close_tree = 0 O.auto_close_tree = 0
O.wrap_lines = false O.wrap_lines = false
-- dashboard
-- O.dashboard.custom_header = {""}
-- O.dashboard.footer = {""}
-- if you don't want all the parsers change this to a table of the ones you want -- if you don't want all the parsers change this to a table of the ones you want
O.treesitter.ensure_installed = "all" O.treesitter.ensure_installed = "all"
O.treesitter.ignore_install = {"haskell"} O.treesitter.ignore_install = {"haskell"}