Added auto brackets to neovim

This commit is contained in:
Rekai Nyangadzayi Musuka 2020-09-04 00:42:17 -05:00
parent c5f03acdac
commit 96d121ba87
1 changed files with 13 additions and 0 deletions

View File

@ -5,6 +5,13 @@ nnoremap <silent><nowait> <space>s :TagbarToggle<CR>
" Remove Highlight " Remove Highlight
nnoremap <esc><esc> :let @/=""<cr> nnoremap <esc><esc> :let @/=""<cr>
" Always show the signcolumn
if has("patch-8.1.1564")
" Recently vim can merge signcolumn and number column into one
set signcolumn=number
else
set signcolumn=yes
endif
" Required for operations modifying multiple buffers like rename. " Required for operations modifying multiple buffers like rename.
" Used by coc.nvim " Used by coc.nvim
@ -20,6 +27,9 @@ autocmd CursorHold * silent call CocActionAsync('highlight')
" C-Space triggers autocompletion " C-Space triggers autocompletion
inoremap <silent><expr> <c-space> coc#refresh() inoremap <silent><expr> <c-space> coc#refresh()
" coc.nvim quick fix
nmap <leader>qf <Plug>(coc-fix-current)
" Use tab for trigger completion with characters ahead and navigate. " Use tab for trigger completion with characters ahead and navigate.
" Used by coc.nvim " Used by coc.nvim
inoremap <silent><expr> <TAB> inoremap <silent><expr> <TAB>
@ -126,6 +136,9 @@ Plug 'ryanoasis/vim-devicons'
" Better Rust Synatax Highlighting " Better Rust Synatax Highlighting
Plug 'arzg/vim-rust-syntax-ext' Plug 'arzg/vim-rust-syntax-ext'
" Auto-close brackets
Plug 'jiangmiao/auto-pairs'
call plug#end() call plug#end()
" Autosave with rust-fmt (Rust Only) " Autosave with rust-fmt (Rust Only)