Merge branch 'master' of github.com:ChristianChiarulli/nvim

This commit is contained in:
Chris 2020-07-18 14:51:49 -04:00
commit 5d78f939f1
5 changed files with 15 additions and 3 deletions

View file

@ -24,7 +24,8 @@ else
source $HOME/.config/nvim/themes/airline.vim
source $HOME/.config/nvim/plug-config/rnvimr.vim
source $HOME/.config/nvim/plug-config/fzf.vim
source $HOME/.config/nvim/plug-config/nerd-commenter.vim
"source $HOME/.config/nvim/plug-config/nerd-commenter.vim switching to vim-commentary
source $HOME/.config/nvim/plug-config/vim-commentary.vim
source $HOME/.config/nvim/plug-config/rainbow.vim
source $HOME/.config/nvim/plug-config/codi.vim
source $HOME/.config/nvim/plug-config/quickscope.vim

View file

@ -25,7 +25,7 @@ autocmd FileType which_key set laststatus=0 noshowmode noruler
" Single mappings
let g:which_key_map['/'] = [ ':Commentary' , 'comment' ]
let g:which_key_map['/'] = [ ':call Comment()' , 'comment' ]
let g:which_key_map['.'] = [ ':e $MYVIMRC' , 'open init' ]
let g:which_key_map[';'] = [ ':Commands' , 'commands' ]
let g:which_key_map['='] = [ '<C-W>=' , 'balance windows' ]

View file

@ -0,0 +1,8 @@
function! Comment()
if (mode() == "n" )
execute "Commentary"
else
execute "'<,'>Commentary"
endif
endfunction
vnoremap <silent> <space>/ :call Comment()

View file

@ -13,7 +13,6 @@ let g:airline#extensions#tabline#show_tab_type = 0
let g:airline#extensions#tabline#show_tab_nr = 0
let g:airline#extensions#tabline#fnamecollapse = 1
let g:airline#extensions#tabline#show_tab_type = 0
let g:airline#extensions#tabline#buffers_label = ''
let g:airline#extensions#tabline#tabs_label = ''

View file

@ -8,6 +8,10 @@ endif
call plug#begin('~/.config/nvim/autoload/plugged')
" jsx syntax support
Plug 'maxmellon/vim-jsx-pretty'
Plug 'suy/vim-context-commentstring'
" Change dates fast
Plug 'tpope/vim-speeddating'
" Convert binary, hex, etc..