Give a try to Dashboard in place of Startify
This commit is contained in:
parent
3dc3a8bf67
commit
98ff271bb2
@ -76,7 +76,7 @@ endfunction
|
|||||||
function! BufClose()
|
function! BufClose()
|
||||||
if (CountBuffers() == 1 || IsExplorerBuffer() || IsEmptyBuffer())
|
if (CountBuffers() == 1 || IsExplorerBuffer() || IsEmptyBuffer())
|
||||||
bwipeout
|
bwipeout
|
||||||
Startify
|
Dashboard
|
||||||
else
|
else
|
||||||
bwipeout
|
bwipeout
|
||||||
endif
|
endif
|
||||||
|
@ -126,7 +126,7 @@ set clipboard=unnamedplus
|
|||||||
|
|
||||||
" With a map leader it's possible to do extra key combinations
|
" With a map leader it's possible to do extra key combinations
|
||||||
" like <leader>w saves the current file
|
" like <leader>w saves the current file
|
||||||
let mapleader = ";"
|
let g:mapleader = ";"
|
||||||
|
|
||||||
" Fast saving
|
" Fast saving
|
||||||
nmap <leader>w :w!<cr>
|
nmap <leader>w :w!<cr>
|
||||||
@ -298,11 +298,11 @@ endif
|
|||||||
" Installing the Plug plugin manager
|
" Installing the Plug plugin manager
|
||||||
source ${HOME}/.config/nvim/plug.vim
|
source ${HOME}/.config/nvim/plug.vim
|
||||||
|
|
||||||
" Start startify if no arg
|
" Start dashboard if no arg
|
||||||
autocmd StdinReadPre * let s:std_in=1
|
autocmd StdinReadPre * let s:std_in=1
|
||||||
autocmd VimEnter *
|
autocmd VimEnter *
|
||||||
\ if (argc() == 0 && !exists("s:std_in") && !has('gui'))
|
\ if (argc() == 0 && !exists("s:std_in") && !has('gui'))
|
||||||
\ | Startify
|
\ | Dashboard
|
||||||
\ | endif
|
\ | endif
|
||||||
|
|
||||||
" " needed so deoplete can auto select the first suggestion
|
" " 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 {{{
|
" Defx {{{
|
||||||
" -----
|
" -----
|
||||||
@ -771,7 +789,7 @@ let g:tex_flavor = 'latex'
|
|||||||
"""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
|
||||||
" Load functions from file
|
" Load functions from file
|
||||||
source ${HOME}/.config/nvim/startscreen.vim
|
" source ${HOME}/.config/nvim/startscreen.vim
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" File : keybindings.vim
|
" File : keybindings.vim
|
||||||
" Author : Jeff LANCE <email@jefflance.me>
|
" Author : Jeff LANCE <email@jefflance.me>
|
||||||
" Date : 15.04.2015
|
" Date : 15.04.2015
|
||||||
" Last Modified Date: 05.05.2021
|
" Last Modified Date: 06.09.2021
|
||||||
" Last Modified By : Jeff LANCE <email@jefflance.me>
|
" Last Modified By : Jeff LANCE <email@jefflance.me>
|
||||||
|
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
@ -64,7 +64,7 @@ command! -bang -nargs=? -complete=dir Files
|
|||||||
\ )
|
\ )
|
||||||
map <C-w> :echom 'Close buffer' <bar> :call BufClose()<cr>
|
map <C-w> :echom 'Close buffer' <bar> :call BufClose()<cr>
|
||||||
map <C-o> :e<space>
|
map <C-o> :e<space>
|
||||||
map <C-n> :Startify<cr>
|
map <C-n> :DashboardNewFile<cr>
|
||||||
map <A-PageDown> :bn<cr>
|
map <A-PageDown> :bn<cr>
|
||||||
map <A-PageUp> :bp<cr>
|
map <A-PageUp> :bp<cr>
|
||||||
|
|
||||||
@ -84,13 +84,17 @@ map <C-l> :call WinMove('l')<cr>
|
|||||||
" }}}
|
" }}}
|
||||||
|
|
||||||
|
|
||||||
" Tabs {{{
|
" Dashboard {{{
|
||||||
" -----
|
" -----
|
||||||
|
|
||||||
"map <leader>tn :tabnew<cr> <bar> :Startify<cr>
|
nmap <Leader>ss :<C-u>SessionSave<CR>
|
||||||
"map <leader>tc :tabclose<cr>
|
nmap <Leader>sl :<C-u>SessionLoad<CR>
|
||||||
"map <C-]> :tabnext<cr>
|
nnoremap <silent> <Leader>fh :DashboardFindHistory<CR>
|
||||||
"map <C-[> :tabprev<cr>
|
nnoremap <silent> <Leader>ff :DashboardFindFile<CR>
|
||||||
|
nnoremap <silent> <Leader>tc :DashboardChangeColorscheme<CR>
|
||||||
|
nnoremap <silent> <Leader>fa :DashboardFindWord<CR>
|
||||||
|
nnoremap <silent> <Leader>fb :DashboardJumpMark<CR>
|
||||||
|
nnoremap <silent> <Leader>cn :DashboardNewFile<CR>
|
||||||
|
|
||||||
" -----
|
" -----
|
||||||
" }}}
|
" }}}
|
||||||
@ -185,7 +189,7 @@ endfunction
|
|||||||
" FZF {{{
|
" FZF {{{
|
||||||
" -----
|
" -----
|
||||||
|
|
||||||
map <C-f> :Files<cr>
|
map <C-f> :DashboardFindFile<cr>
|
||||||
|
|
||||||
" -----
|
" -----
|
||||||
" }}}
|
" }}}
|
||||||
@ -200,17 +204,6 @@ map <f4> :AddHeader<cr>
|
|||||||
" }}}
|
" }}}
|
||||||
|
|
||||||
|
|
||||||
" Plug {{{
|
|
||||||
" -----
|
|
||||||
|
|
||||||
map Pud :PlugUpdate<cr>
|
|
||||||
map Pug :PlugUpgrade<cr>
|
|
||||||
map Pui :PlugInstall<cr>
|
|
||||||
|
|
||||||
" -----
|
|
||||||
" }}}
|
|
||||||
|
|
||||||
|
|
||||||
" Vimroom {{{
|
" Vimroom {{{
|
||||||
" -----
|
" -----
|
||||||
|
|
||||||
|
@ -39,7 +39,8 @@ call plug#begin('~/.local/share/nvim/plugged')
|
|||||||
" -----
|
" -----
|
||||||
|
|
||||||
" Startup screen
|
" Startup screen
|
||||||
Plug 'mhinz/vim-startify'
|
Plug 'glepnir/dashboard-nvim'
|
||||||
|
" Plug 'mhinz/vim-startify'
|
||||||
|
|
||||||
" Ansible
|
" Ansible
|
||||||
Plug 'pearofducks/ansible-vim'
|
Plug 'pearofducks/ansible-vim'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user