mirror of
https://github.com/LunarVim/LunarVim.git
synced 2024-09-20 18:45:08 +02:00
Merge branch 'master' of github.com:ChristianChiarulli/nvim
This commit is contained in:
commit
5d78f939f1
5 changed files with 15 additions and 3 deletions
3
init.vim
3
init.vim
|
@ -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
|
||||
|
|
|
@ -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' ]
|
||||
|
|
8
plug-config/vim-commentary.vim
Normal file
8
plug-config/vim-commentary.vim
Normal file
|
@ -0,0 +1,8 @@
|
|||
function! Comment()
|
||||
if (mode() == "n" )
|
||||
execute "Commentary"
|
||||
else
|
||||
execute "'<,'>Commentary"
|
||||
endif
|
||||
endfunction
|
||||
vnoremap <silent> <space>/ :call Comment()
|
|
@ -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 = ''
|
||||
|
||||
|
|
|
@ -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..
|
||||
|
|
Loading…
Reference in a new issue