From 9e7ad6074746a3f7d60e164be919b53ad17a33dd Mon Sep 17 00:00:00 2001 From: christianchiarulli Date: Wed, 30 Jun 2021 18:45:40 -0400 Subject: refactor autocommands --- lua/lv-dashboard/init.lua | 39 +++++++++++++-------------------------- 1 file changed, 13 insertions(+), 26 deletions(-) (limited to 'lua/lv-dashboard/init.lua') 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 set showtabline=2' + }, {'FileType', 'dashboard', 'nnoremap q :q'} + } +}) + return M -- cgit v1.2.3