update vim

This commit is contained in:
Arthur Wambst 2024-11-11 01:46:22 +01:00
parent d77024879a
commit e8b9fffb09
7 changed files with 60 additions and 4 deletions

8
vim/coc-settings.json Normal file
View File

@ -0,0 +1,8 @@
{
"coc.preferences.useQuickfixForLocations": true,
"coc.preferences.snippets.enable": true,
"coc.preferences.extensionUpdateCheck": "never",
"suggest.disableMenu": true,
"suggest.snippetIndicator": "",
"clangd.path": "~/.config/coc/extensions/coc-clangd-data/install/18.1.3/clangd_18.1.3/bin/clangd"
}

@ -0,0 +1 @@
Subproject commit 39f06b873a8449af8ff6a3eee716d3da14d63a76

@ -1 +1 @@
Subproject commit 69b16f8651b4d92d9ea5d6b000c084f275ed7928
Subproject commit 57d488a06bdb34de89acef3c2f3e9ce609d632ed

@ -0,0 +1 @@
Subproject commit 390b893d361c356ac1b00778d849815f2aa44ae4

@ -0,0 +1 @@
Subproject commit 692e359ad9344d6e69626131f5c96743560e4d53

@ -0,0 +1 @@
Subproject commit 0ce2d843d6f588bb0c8c7eec6449171615dc56d9

50
vimrc
View File

@ -15,17 +15,23 @@ set showcmd
set showmode
set showmatch
set hlsearch
set nowritebackup
set encoding=utf-8
set updatetime=300
set signcolumn=yes
" PLUGINS ---------------------------------------------------------------- {{{
call plug#begin('~/.vim/plugged')
Plug 'sheerun/vim-polyglot'
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'tpope/vim-sensible'
Plug 'preservim/nerdtree'
Plug 'jiangmiao/auto-pairs'
Plug 'rrethy/vim-hexokinase', {'do': 'make hexokinase'}
"Plug 'rrethy/vim-hexokinase', {'do': 'make hexokinase'}
Plug 'joshdick/onedark.vim'
"Plug 'neoclide/coc.nvim', {'branch': 'release'}
"#https://vimawesome.com/plugin/syntastic
"#https://vimawesome.com/plugin/vim-airline-superman
@ -38,6 +44,42 @@ call plug#end()
" MAPPINGS --------------------------------------------------------------- {{{
" Mappings code goes here.
"inoremap <silent><expr> <TAB> coc#pum#visible() ? coc#pum#confirm()
" \: "\<C-g>u\<CR>\<c-r>=coc#on_enter()\<CR>"
" Use K to show documentation in preview window
nnoremap <silent> K :call ShowDocumentation()<CR>
function! ShowDocumentation()
if CocAction('hasProvider', 'hover')
call CocActionAsync('doHover')
else
call feedkeys('K', 'in')
endif
endfunction
" Use <C-l> for trigger snippet expand.
"imap <C-l> <Plug>(coc-snippets-expand)
inoremap <silent><expr> <TAB>
\ pumvisible() ? coc#_select_confirm() :
\ coc#expandableOrJumpable() ? "\<C-r>=coc#rpc#request('doKeymap', ['snippets-expand-jump',''])\<CR>" :
\ <SID>check_back_space() ? "\<TAB>" :
\ coc#refresh()
function! s:check_back_space() abort
let col = col('.') - 1
return !col || getline('.')[col - 1] =~# '\s'
endfunction
let g:coc_snippet_next = '<tab>'
" Highlight the symbol and its references when holding the cursor
"autocmd * silent call CocActionAsync('highlight')
"inoremap <silent><expr> <TAB>
" \ coc#pum#visible() ? coc#pum#next(1) :
" \ CheckBackspace() ? "\<Tab>" :
" \ coc#refresh()
"inoremap <expr><S-TAB> coc#pum#visible() ? coc#pum#prev(1) : "\<C-h>"
" }}}
@ -52,7 +94,9 @@ call plug#end()
"augroup END
" More Vimscripts code goes here.
syntax on
colorscheme onedark
"let g:Hexokinase_highlighters = ['foreground']
" }}}