diff options
| author | christianchiarulli <[email protected]> | 2021-07-05 16:26:31 -0400 | 
|---|---|---|
| committer | christianchiarulli <[email protected]> | 2021-07-05 16:26:31 -0400 | 
| commit | 20485971641a9d916640ccad05586a641c984ed6 (patch) | |
| tree | d397a3a9adba502b4c26b802d897b8310972f76f /lua/lv-dashboard/init.lua | |
| parent | 56e82dac4497293541099185441485dd31e98dc8 (diff) | |
| parent | a469c710bfc01f291df68dba40464caaa2b496da (diff) | |
Merge branch 'master' of github.com:ChristianChiarulli/LunarVim into stable
Diffstat (limited to 'lua/lv-dashboard/init.lua')
| -rw-r--r-- | lua/lv-dashboard/init.lua | 107 | 
1 files changed, 56 insertions, 51 deletions
| diff --git a/lua/lv-dashboard/init.lua b/lua/lv-dashboard/init.lua index 99fcb10f..7a6c77cd 100644 --- a/lua/lv-dashboard/init.lua +++ b/lua/lv-dashboard/init.lua @@ -1,65 +1,70 @@  local M = {}  M.config = function() -    vim.g.dashboard_disable_at_vimenter = 0 +  vim.g.dashboard_disable_at_vimenter = 0 -    vim.g.dashboard_custom_header = O.dashboard.custom_header +  vim.g.dashboard_custom_header = O.dashboard.custom_header -    vim.g.dashboard_default_executive = 'telescope' +  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-config.lua' -        }, -        f = { -            description = {'  Neovim Config Files'}, -            command = 'Telescope find_files cwd=' .. CONFIG_PATH -        } -        -- e = {description = {'  Marks              '}, command = 'Telescope marks'} -    } -    vim.cmd( -        "let g:dashboard_session_directory = $HOME..'/.config/nvim/.sessions'") -    vim.cmd( -        "let packages = len(globpath('~/.local/share/nvim/site/pack/packer/start', '*', 0, 1))") +  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-config.lua", +    }, +    f = { +      description = { "  Neovim Config Files" }, +      command = "Telescope find_files cwd=" .. CONFIG_PATH, +    }, +    -- e = {description = {'  Marks              '}, command = 'Telescope marks'} +  } +  vim.cmd "let g:dashboard_session_directory = $HOME..'/.config/nvim/.sessions'" +  vim.cmd "let packages = len(globpath('~/.local/share/nvim/site/pack/packer/start', '*', 0, 1))" -    vim.api.nvim_exec([[ +  vim.api.nvim_exec( +    [[      let g:dashboard_custom_footer = ['LuaJIT loaded '..packages..' plugins'] -]], false) +]], +    false +  ) -    -- file_browser = {description = {' File Browser'}, command = 'Telescope find_files'}, +  -- file_browser = {description = {' File Browser'}, command = 'Telescope find_files'}, -    -- vim.g.dashboard_session_directory = CACHE_PATH..'/session' -    -- vim.g.dashboard_custom_footer = O.dashboard.footer +  -- 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>'} -    } -}) +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 | 
