Update init.vim

This commit is contained in:
nnduc 2023-10-28 08:12:58 +00:00
parent 4361d75455
commit c2f7659849
1 changed files with 4 additions and 8 deletions

View File

@ -29,7 +29,6 @@ Plug 'junegunn/fzf.vim'
Plug 'honza/vim-snippets'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'cocopon/iceberg.vim'
Plug 'kevinhwang91/nvim-bqf'
Plug 'morhetz/gruvbox'
Plug 'tpope/vim-fugitive'
@ -37,18 +36,17 @@ Plug 'ynkdir/vim-diff'
call plug#end()
"Color scheme
colorscheme iceberg
"colorscheme gruvbox
"let g:gruvbox_contrast_light = 'hard'
"colorscheme iceberg
"set background=light
colorscheme gruvbox
let g:gruvbox_contrast_light = 'hard'
set background=light
"Open NERDTree
:nnoremap <silent> <expr> <F2> g:NERDTree.IsOpen() ? "\:NERDTreeClose<CR>" : bufexists(expand('%')) ? "\:NERDTreeFind<CR>" : "\:NERDTree<CR>"
"Coc.nvim
inoremap <silent><expr> <cr> pumvisible() ? coc#_select_confirm() : "\<C-g>u\<cr>"
inoremap <silent><expr> <TAB>
\ coc#pum#visible() ? coc#_select_confirm() :
\ coc#expandableOrJumpable() ? "\<C-r>=coc#rpc#request('doKeymap', ['snippets-expand-jump',''])\<CR>" :
@ -61,8 +59,6 @@ function! CheckBackSpace() abort
endfunction
let g:coc_snippet_next = '<tab>'
let g:coc_snippet_next = '<tab>'
nnoremap <leader>e :CocCommand snippets.editSnippets<CR>
" Comments
let mapleader = ","