Added auto brackets to neovim
This commit is contained in:
parent
c5f03acdac
commit
96d121ba87
|
@ -5,6 +5,13 @@ nnoremap <silent><nowait> <space>s :TagbarToggle<CR>
|
|||
" Remove Highlight
|
||||
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.
|
||||
" Used by coc.nvim
|
||||
|
@ -20,6 +27,9 @@ autocmd CursorHold * silent call CocActionAsync('highlight')
|
|||
" C-Space triggers autocompletion
|
||||
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.
|
||||
" Used by coc.nvim
|
||||
inoremap <silent><expr> <TAB>
|
||||
|
@ -126,6 +136,9 @@ Plug 'ryanoasis/vim-devicons'
|
|||
" Better Rust Synatax Highlighting
|
||||
Plug 'arzg/vim-rust-syntax-ext'
|
||||
|
||||
" Auto-close brackets
|
||||
Plug 'jiangmiao/auto-pairs'
|
||||
|
||||
call plug#end()
|
||||
|
||||
" Autosave with rust-fmt (Rust Only)
|
||||
|
|
Loading…
Reference in New Issue