Debugger, fzf, airline updates

This commit is contained in:
Andrejus
2020-11-19 20:38:33 +00:00
parent 7f381899c3
commit e24f8ef60d
3 changed files with 20 additions and 5 deletions

View File

@@ -80,6 +80,7 @@ nmap <silent> <leader>E :CocCommand explorer --reveal expand('<sfile>')<cr>
" coc.nvim " coc.nvim
" <l>c - Open command list
" Ctrl-n - Go to previous diagnostic " Ctrl-n - Go to previous diagnostic
" Ctrl-p - Go to next diagnostic " Ctrl-p - Go to next diagnostic
" <l>d - Jump to definition of current symbol " <l>d - Jump to definition of current symbol
@@ -97,6 +98,11 @@ nmap <silent> <leader>r <Plug>(coc-references)
nmap <silent> <leader>j <Plug>(coc-implementation) nmap <silent> <leader>j <Plug>(coc-implementation)
nmap <silent> <leader>s :<C-u>CocList -I -N --top symbols<cr> nmap <silent> <leader>s :<C-u>CocList -I -N --top symbols<cr>
nmap <silent> <leader>n <Plug>(coc-rename) nmap <silent> <leader>n <Plug>(coc-rename)
nmap <silent> <leader>c :CocCommand<cr>
" vimspector
" <l>D - Start debugger
nmap <silent> <leader>D :call vimspector#Launch()<cr>
" Search shorcuts " Search shorcuts

View File

@@ -23,10 +23,10 @@ Plug 'vim-airline/vim-airline-themes'
let g:airline_theme = 'base16_seti' let g:airline_theme = 'base16_seti'
" Enable extensions " Enable extensions
let g:airline_extensions = ['branch', 'coc', 'hunks'] let g:airline_extensions = ['branch', 'coc', 'hunks', 'tabline', 'whitespace', 'fzf']
" Do not draw separators for empty sections (only for the active window) > " Do not draw separators for empty sections (only for the active window) >
let g:airline_skip_empty_sections = 1 let g:airline_skip_empty_sections = 0
" Custom setup that removes filetype/whitespace from default vim airline bar " Custom setup that removes filetype/whitespace from default vim airline bar
let g:airline#extensions#default#layout = [['a', 'b', 'c'], ['x', 'z', 'warning', 'error']] let g:airline#extensions#default#layout = [['a', 'b', 'c'], ['x', 'z', 'warning', 'error']]
@@ -116,8 +116,8 @@ Plug 'tpope/vim-fugitive'
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim' Plug 'junegunn/fzf.vim'
" {{{ " {{{
let g:fzf_layout = { 'window': { 'width': 0.9, 'height': 0.6 } } let g:fzf_layout = { 'down': '~40%' }
let g:fzf_preview_window = ['right:66%', 'ctrl-/'] let g:fzf_preview_window = ['right:50%', 'ctrl-/']
let g:fzf_buffers_jump = 1 let g:fzf_buffers_jump = 1
" }}} " }}}
Plug 'antoinemadec/coc-fzf' Plug 'antoinemadec/coc-fzf'
@@ -161,4 +161,13 @@ Plug 'neoclide/coc.nvim', {'do': 'yarn install --frozen-lockfile'}
\ ] \ ]
" }}} " }}}
" debugger
Plug 'puremourning/vimspector'
" {{{
let g:vimspector_enable_mappings = 'HUMAN'
" }}}
" Terminal
Plug 'kassio/neoterm'
call plug#end() call plug#end()

View File

@@ -60,7 +60,7 @@ export EDITOR="nvim"
export VISUAL="nvim" export VISUAL="nvim"
# fzf # fzf
export FZF_DEFAULT_OPTS="--reverse --margin=1,5%" export FZF_DEFAULT_OPTS="--reverse"
export FZF_DEFAULT_COMMAND='fdfind --type f --hidden --follow --exclude .git' export FZF_DEFAULT_COMMAND='fdfind --type f --hidden --follow --exclude .git'
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND" export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
export FZF_COMPLETION_TRIGGER='**' export FZF_COMPLETION_TRIGGER='**'