diff --git a/conf.d/nvim/functions.vim b/conf.d/nvim/functions.vim index 5110516..c86cb0c 100644 --- a/conf.d/nvim/functions.vim +++ b/conf.d/nvim/functions.vim @@ -76,7 +76,7 @@ endfunction function! BufClose() if (CountBuffers() == 1 || IsExplorerBuffer() || IsEmptyBuffer()) bwipeout - Startify + Dashboard else bwipeout endif diff --git a/conf.d/nvim/init.vim b/conf.d/nvim/init.vim index 03ff1f3..bd2ce61 100644 --- a/conf.d/nvim/init.vim +++ b/conf.d/nvim/init.vim @@ -126,7 +126,7 @@ set clipboard=unnamedplus " With a map leader it's possible to do extra key combinations " like w saves the current file -let mapleader = ";" +let g:mapleader = ";" " Fast saving nmap w :w! @@ -298,11 +298,11 @@ endif " Installing the Plug plugin manager source ${HOME}/.config/nvim/plug.vim -" Start startify if no arg +" Start dashboard if no arg autocmd StdinReadPre * let s:std_in=1 autocmd VimEnter * \ if (argc() == 0 && !exists("s:std_in") && !has('gui')) - \ | Startify + \ | Dashboard \ | endif " " needed so deoplete can auto select the first suggestion @@ -435,6 +435,24 @@ let g:colorizer_auto_filetype='css,html,xml,py,js' " }}} +" Dashboard {{{ +" ----- + +let g:dashboard_custom_shortcut={ + \ 'last_session' : 'SPC s l', + \ 'find_history' : 'SPC f h', + \ 'find_file' : 'SPC f f', + \ 'new_file' : 'SPC c n', + \ 'change_colorscheme' : 'SPC t c', + \ 'find_word' : 'SPC f a', + \ 'book_marks' : 'SPC f b', +\ } + +let g:dashboard_default_executive ='fzf' + +" ----- +" }}} + " Defx {{{ " ----- @@ -771,7 +789,7 @@ let g:tex_flavor = 'latex' """"""""""""""""""""""""""""""""""""""""""""""""" " Load functions from file -source ${HOME}/.config/nvim/startscreen.vim +" source ${HOME}/.config/nvim/startscreen.vim diff --git a/conf.d/nvim/keybindings.vim b/conf.d/nvim/keybindings.vim index 9e3ddcd..8ebfd4f 100644 --- a/conf.d/nvim/keybindings.vim +++ b/conf.d/nvim/keybindings.vim @@ -1,7 +1,7 @@ " File : keybindings.vim " Author : Jeff LANCE " Date : 15.04.2015 -" Last Modified Date: 05.05.2021 +" Last Modified Date: 06.09.2021 " Last Modified By : Jeff LANCE """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" @@ -64,7 +64,7 @@ command! -bang -nargs=? -complete=dir Files \ ) map :echom 'Close buffer' :call BufClose() map :e -map :Startify +map :DashboardNewFile map :bn map :bp @@ -84,13 +84,17 @@ map :call WinMove('l') " }}} -" Tabs {{{ +" Dashboard {{{ " ----- -"map tn :tabnew :Startify -"map tc :tabclose -"map :tabnext -"map :tabprev +nmap ss :SessionSave +nmap sl :SessionLoad +nnoremap fh :DashboardFindHistory +nnoremap ff :DashboardFindFile +nnoremap tc :DashboardChangeColorscheme +nnoremap fa :DashboardFindWord +nnoremap fb :DashboardJumpMark +nnoremap cn :DashboardNewFile " ----- " }}} @@ -185,7 +189,7 @@ endfunction " FZF {{{ " ----- -map :Files +map :DashboardFindFile " ----- " }}} @@ -200,17 +204,6 @@ map :AddHeader " }}} -" Plug {{{ -" ----- - -map Pud :PlugUpdate -map Pug :PlugUpgrade -map Pui :PlugInstall - -" ----- -" }}} - - " Vimroom {{{ " ----- diff --git a/conf.d/nvim/plug.vim b/conf.d/nvim/plug.vim index 16b59ad..3b83d22 100644 --- a/conf.d/nvim/plug.vim +++ b/conf.d/nvim/plug.vim @@ -39,7 +39,8 @@ call plug#begin('~/.local/share/nvim/plugged') " ----- " Startup screen -Plug 'mhinz/vim-startify' +Plug 'glepnir/dashboard-nvim' +" Plug 'mhinz/vim-startify' " Ansible Plug 'pearofducks/ansible-vim'