diff options
Diffstat (limited to 'lua')
-rw-r--r-- | lua/nv-dashboard/init.lua | 35 | ||||
-rw-r--r-- | lua/nv-utils/init.lua | 2 | ||||
-rw-r--r-- | lua/plugins.lua | 4 |
3 files changed, 40 insertions, 1 deletions
diff --git a/lua/nv-dashboard/init.lua b/lua/nv-dashboard/init.lua new file mode 100644 index 00000000..e4c54177 --- /dev/null +++ b/lua/nv-dashboard/init.lua @@ -0,0 +1,35 @@ +vim.g.dashboard_custom_header = { + '███╗ ██╗██╗ ██╗ ██████╗ ██████╗ ██████╗ ███████╗', + '████╗ ██║██║ ██║██╔════╝██╔═══██╗██╔══██╗██╔════╝', + '██╔██╗ ██║██║ ██║██║ ██║ ██║██║ ██║█████╗', + '██║╚██╗██║╚██╗ ██╔╝██║ ██║ ██║██║ ██║██╔══╝', + '██║ ╚████║ ╚████╔╝ ╚██████╗╚██████╔╝██████╔╝███████╗', + '╚═╝ ╚═══╝ ╚═══╝ ╚═════╝ ╚═════╝ ╚═════╝ ╚══════╝' +} + +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 = {' Marks '}, command = 'Telescope marks'}, +} + + + + +-- 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/nvim/session' +vim.g.dashboard_custom_footer = {'chrisatmachine.com'} diff --git a/lua/nv-utils/init.lua b/lua/nv-utils/init.lua index 59388093..04f625c1 100644 --- a/lua/nv-utils/init.lua +++ b/lua/nv-utils/init.lua @@ -34,6 +34,8 @@ nv_utils.define_augroups({ {'FileType', 'java', 'nnoremap ca <Cmd>lua require(\'jdtls\').code_action()<CR>'}, {'FileType', 'markdown', 'setlocal wrap'}, -- {'BufWinEnter', '.sol', 'setlocal filetype=solidity'}, + + -- { 'FileType', 'dashboard', 'set showtabline=0 | autocmd WinLeave <buffer> set showtabline=2'}, {'BufRead', '*.sol', 'setlocal filetype=solidity'}, {'BufNewFile', '*.sol', 'setlocal filetype=solidity'} -- autocmd! BufRead,BufNewFile *.{jsx,jx,js} setlocal filetype=javascript.jsx diff --git a/lua/plugins.lua b/lua/plugins.lua index 3366aabb..4e49f898 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -101,7 +101,8 @@ return require('packer').startup(function(use) use 'unblevable/quick-scope' use 'airblade/vim-rooter' use 'kevinhwang91/rnvimr' - use 'mhinz/vim-startify' + -- use 'mhinz/vim-startify' + use 'glepnir/dashboard-nvim' use 'metakirby5/codi.vim' use 'psliwka/vim-smoothie' use 'moll/vim-bbye' @@ -117,6 +118,7 @@ return require('packer').startup(function(use) use 'tpope/vim-sleuth' use 'sheerun/vim-polyglot' use 'monaqa/dial.nvim' + use 'MattesGroeger/vim-bookmarks' -- Look for more up to date version of this -- TODO put this back when stable for indent lines -- use { 'lukas-reineke/indent-blankline.nvim', branch = 'lua'} |