Update init.vim

This commit is contained in:
nnduc 2023-10-28 08:12:58 +00:00
parent 4361d75455
commit c2f7659849

View File

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