diff options
Diffstat (limited to 'lua/lv-dashboard/init.lua')
-rw-r--r-- | lua/lv-dashboard/init.lua | 39 |
1 files changed, 13 insertions, 26 deletions
diff --git a/lua/lv-dashboard/init.lua b/lua/lv-dashboard/init.lua index 6e619033..0a86da5c 100644 --- a/lua/lv-dashboard/init.lua +++ b/lua/lv-dashboard/init.lua @@ -1,24 +1,6 @@ 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 @@ -55,17 +37,22 @@ M.config = function() -- 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 +require('lv-utils').define_augroups({ + _dashboard = { + -- seems to be nobuflisted that makes my stuff disapear will do more testing + { + 'FileType', 'dashboard', + 'setlocal nocursorline noswapfile synmaxcol& signcolumn=no norelativenumber nocursorcolumn nospell nolist nonumber bufhidden=wipe colorcolumn= foldcolumn=0 matchpairs= ' + }, { + 'FileType', 'dashboard', + 'set showtabline=0 | autocmd BufLeave <buffer> set showtabline=2' + }, {'FileType', 'dashboard', 'nnoremap <silent> <buffer> q :q<CR>'} + } +}) + return M |