update coc install
This commit is contained in:
parent
3bd7beedd1
commit
611860b227
@ -1,7 +1,7 @@
|
||||
" File : functions.vim
|
||||
" Author : Jeff LANCE <email@jefflance.me>
|
||||
" Date : 15.04.2015
|
||||
" Last Modified Date: 24.06.2020
|
||||
" Last Modified Date: 03.03.2021
|
||||
" Last Modified By : Jeff LANCE <email@jefflance.me>
|
||||
|
||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
@ -83,34 +83,4 @@ function! BufClose()
|
||||
endfunction
|
||||
|
||||
|
||||
" COC functions {{{
|
||||
" -----
|
||||
|
||||
function! s:check_back_space() abort
|
||||
let col = col('.') - 1
|
||||
return !col || getline('.')[col - 1] =~# '\s'
|
||||
endfunction
|
||||
|
||||
function! s:show_documentation()
|
||||
if (index(['vim','help'], &filetype) >= 0)
|
||||
execute 'h '.expand('<cword>')
|
||||
elseif (coc#rpc#ready())
|
||||
call CocActionAsync('doHover')
|
||||
else
|
||||
execute '!' . &keywordprg . " " . expand('<cword>')
|
||||
endif
|
||||
endfunction
|
||||
|
||||
"function! s:show_documentation()
|
||||
" if (index(['vim','help'], &filetype) >= 0)
|
||||
" execute 'h '.expand('<cword>')
|
||||
" else
|
||||
" call CocAction('doHover')
|
||||
" endif
|
||||
"endfunction
|
||||
|
||||
" -----
|
||||
" }}}
|
||||
|
||||
|
||||
" vim:ft=vim
|
||||
|
@ -476,6 +476,9 @@ let g:deoplete#enable_at_startup = 0
|
||||
|
||||
let g:EditorConfig_exclude_patterns = ['fugitive://.*', 'scp://.*']
|
||||
au FileType gitcommit let b:EditorConfig_disable = 1
|
||||
au FileType cls let b:EditorConfig_disable = 1
|
||||
au FileType sty let b:EditorConfig_disable = 1
|
||||
au FileType tex let b:EditorConfig_disable = 1
|
||||
|
||||
" -----
|
||||
" }}}
|
||||
@ -598,9 +601,10 @@ let g:tmux_navigator_save_on_switch = 2
|
||||
" Vimroom {{{
|
||||
" -----
|
||||
|
||||
let g:goyo_width=200
|
||||
let g:goyo_margin_top = 2
|
||||
let g:goyo_margin_bottom = 2
|
||||
let g:goyo_height = '100%'
|
||||
let g:goyo_width = '90%'
|
||||
let g:goyo_margin_top = 0
|
||||
let g:goyo_margin_bottom = 0
|
||||
|
||||
" -----
|
||||
" }}}
|
||||
@ -643,6 +647,7 @@ source ${HOME}/.config/nvim/startscreen.vim
|
||||
|
||||
" Load functions from file
|
||||
source ${HOME}/.config/nvim/functions.vim
|
||||
source ${HOME}/.config/nvim/coc.vim
|
||||
|
||||
|
||||
|
||||
|
@ -1,16 +1,16 @@
|
||||
" File : keybindings.vim
|
||||
" Author : Jeff LANCE <email@jefflance.me>
|
||||
" Date : 15.04.2015
|
||||
" Last Modified Date: 24.06.2020
|
||||
" Last Modified Date: 03.03.2021
|
||||
" Last Modified By : Jeff LANCE <email@jefflance.me>
|
||||
|
||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
" _ _________ ______ ___ _ _ ____ ___ _ _ ____ ____
|
||||
" | |/ / ____\ \ / / __ )_ _| \ | | _ \_ _| \ | |/ ___/ ___|
|
||||
" | ' /| _| \ V /| _ \| || \| | | | | || \| | | _\___ \
|
||||
" | . \| |___ | | | |_) | || |\ | |_| | || |\ | |_| |___) |
|
||||
" | . \| |___ | | | |_) | || |\ | |_| | || |\ | |_| |___) |
|
||||
" |_|\_\_____| |_| |____/___|_| \_|____/___|_| \_|\____|____/
|
||||
"
|
||||
"
|
||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
|
||||
" Custom {{{
|
||||
@ -62,7 +62,7 @@ command! -bang -nargs=? -complete=dir Files
|
||||
\ <bang>0
|
||||
\ )
|
||||
map <C-w> :echom 'Close buffer' <bar> :call BufClose()<cr>
|
||||
map <C-o> :e
|
||||
map <C-o> :e
|
||||
map <C-n> :Startify<cr>
|
||||
map <C-PageDown> :bn<cr>
|
||||
map <C-PageUp> :bp<cr>
|
||||
@ -95,59 +95,6 @@ map <C-l> :call WinMove('l')<cr>
|
||||
" }}}
|
||||
|
||||
|
||||
" COC {{{
|
||||
" -----
|
||||
|
||||
" Use tab for trigger completion with characters ahead and navigate.
|
||||
" NOTE: Use command ':verbose imap <tab>' to make sure tab is not mapped by
|
||||
" other plugin before putting this into your config.
|
||||
inoremap <silent><expr> <TAB>
|
||||
\ pumvisible() ? "\<C-n>" :
|
||||
\ <SID>check_back_space() ? "\<TAB>" :
|
||||
\ coc#refresh()
|
||||
inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<C-h>"
|
||||
|
||||
" Use <cr> to confirm completion, `<C-g>u` means break undo chain at current
|
||||
" position. Coc only does snippet and additional edit on confirm.
|
||||
" <cr> could be remapped by other vim plugin, try `:verbose imap <CR>`.
|
||||
if exists('*complete_info')
|
||||
inoremap <expr> <cr> complete_info()["selected"] != "-1" ? "\<C-y>" : "\<C-g>u\<CR>"
|
||||
else
|
||||
inoremap <expr> <cr> pumvisible() ? "\<C-y>" : "\<C-g>u\<CR>"
|
||||
endif
|
||||
|
||||
" Use <c-space> to trigger completion.
|
||||
if has('nvim')
|
||||
inoremap <silent><expr> <C-space> coc#refresh()
|
||||
else
|
||||
inoremap <silent><expr> <C-@> coc#refresh()
|
||||
endif
|
||||
|
||||
" Use `[g` and `]g` to navigate diagnostics
|
||||
" Use `:CocDiagnostics` to get all diagnostics of current buffer in location list.
|
||||
nmap <silent> [g <Plug>(coc-diagnostic-prev)
|
||||
nmap <silent> ]g <Plug>(coc-diagnostic-next)
|
||||
|
||||
" GoTo code navigation.
|
||||
nmap <silent> gd <Plug>(coc-definition)
|
||||
nmap <silent> gy <Plug>(coc-type-definition)
|
||||
nmap <silent> gi <Plug>(coc-implementation)
|
||||
nmap <silent> gr <Plug>(coc-references)
|
||||
|
||||
" Use K to show documentation in preview window.
|
||||
nnoremap <silent> K :call <SID>show_documentation()<CR>
|
||||
|
||||
" Symbol renaming.
|
||||
nmap <leader>rn <Plug>(coc-rename)
|
||||
|
||||
" Formatting selected code.
|
||||
xmap <leader>f <Plug>(coc-format-selected)
|
||||
nmap <leader>f <Plug>(coc-format-selected)
|
||||
|
||||
" -----
|
||||
" }}}
|
||||
|
||||
|
||||
" Defx {{{
|
||||
" -----
|
||||
|
||||
@ -263,18 +210,6 @@ map Pui :PlugInstall<cr>
|
||||
" }}}
|
||||
|
||||
|
||||
"" REPL {{{
|
||||
"" -----
|
||||
"
|
||||
"nnoremap <leader>rp :REPLToggle<Cr>
|
||||
"autocmd Filetype python nnoremap <F12> <Esc>:REPLDebugStopAtCurrentLine<Cr>
|
||||
"autocmd Filetype python nnoremap <F10> <Esc>:REPLPDBN<Cr>
|
||||
"autocmd Filetype python nnoremap <F11> <Esc>:REPLPDBS<Cr>
|
||||
"
|
||||
"" -----
|
||||
"" }}}
|
||||
|
||||
|
||||
" Vimroom {{{
|
||||
" -----
|
||||
|
||||
|
@ -1,17 +1,17 @@
|
||||
" File : startscreen.vim
|
||||
" Author : Jeff LANCE <email@jefflance.me>
|
||||
" Date : 01.11.2020
|
||||
" Last Modified Date: 27.01.2021
|
||||
" Last Modified Date: 03.03.2021
|
||||
" Last Modified By : Jeff LANCE <email@jefflance.me>
|
||||
|
||||
"""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
"
|
||||
" ____ _____ _ ____ _____ ___ _______ __
|
||||
" / ___|_ _|/ \ | _ \_ _|_ _| ___\ \ / /
|
||||
" \___ \ | | / _ \ | |_) || | | || |_ \ V /
|
||||
" ___) || |/ ___ \| _ < | | | || _| | |
|
||||
" |____/ |_/_/ \_\_| \_\|_| |___|_| |_|
|
||||
"
|
||||
" \___ \ | | / _ \ | |_) || | | || |_ \ V /
|
||||
" ___) || |/ ___ \| _ < | | | || _| | |
|
||||
" |____/ |_/_/ \_\_| \_\|_| |___|_| |_|
|
||||
"
|
||||
"
|
||||
""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
|
||||
@ -63,11 +63,11 @@ let g:startify_lists = [
|
||||
\ ]
|
||||
|
||||
let g:startify_bookmarks = [
|
||||
\ '${HOME}/.config/',
|
||||
\ '${HOME}/dotfiles/',
|
||||
\ '${HOME}/Projets',
|
||||
\ '${HOME}/Projets/latex/latex-homework',
|
||||
\ '${HOME}/.asy'
|
||||
\ '~/.config/',
|
||||
\ '~/dotfiles/',
|
||||
\ '~/Projets/',
|
||||
\ '~/Projets/latex/latex-homework/',
|
||||
\ '~/.asy/'
|
||||
\ ]
|
||||
|
||||
let g:startify_commands = [
|
||||
|
Loading…
x
Reference in New Issue
Block a user