removed my crude selfwritten bracket autoinserting
This commit is contained in:
parent
b3dbba36ab
commit
5fdd07b5ac
16
init.vim
16
init.vim
|
@ -205,22 +205,6 @@ let g:completion_enable_snippet = 'UltiSnips'
|
||||||
" Use completion-nvim in every buffer
|
" Use completion-nvim in every buffer
|
||||||
autocmd BufEnter * lua require'completion'.on_attach()
|
autocmd BufEnter * lua require'completion'.on_attach()
|
||||||
|
|
||||||
" This function and mapping is basically related
|
|
||||||
" to autocompletion as well.
|
|
||||||
" It automatically maps a single bracket to the
|
|
||||||
" GNU-style formatted bracket.
|
|
||||||
let g:AutoInsertBracket_enable = 0
|
|
||||||
|
|
||||||
function! AutoInsertBracket()
|
|
||||||
if g:AutoInsertBracket_enable
|
|
||||||
return "{\n}\<Esc>O"
|
|
||||||
else
|
|
||||||
return "{"
|
|
||||||
endif
|
|
||||||
endfunction
|
|
||||||
inoremap <expr> { AutoInsertBracket()
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
"============================ A Nice Color Scheme ==============================
|
"============================ A Nice Color Scheme ==============================
|
||||||
"===============================================================================
|
"===============================================================================
|
||||||
|
|
Loading…
Reference in New Issue
Block a user