yage
ad66d50b11
finally going to commit that zshrc refactor - smolvsdefault on altaria - i3-utils refactor - no need for custom scwrypt executable anymore - time to say goodbye to the old dotwryn.env in favor of the new and improved rc.ds - vim/rc.d refactor + QuickREPL and QuickCommand replacements for \r and \t - going to stop tracking Archives explicitly until new hard drive - tty-colorscheme is now referenced directly - colorscheme/spring-sunset needed to swap primary/secondary colors for focus in i3 since it was confusing - setup config no longer needs to create ~/.config/wryn/env.vim; added some dependencies to arch-linux - switch from dmenu to rofi by default; allow .i3 overrides in colorschemes; tty-colorscheme is now referenced directly
30 lines
945 B
VimL
30 lines
945 B
VimL
if g:plugins_ok != 1 | finish | endif
|
|
" -------------------------------------------------------------------
|
|
|
|
let g:ycm_autoclose_preview_window_after_insertion = 1
|
|
let g:ycm_goto_buffer_command = 'new-tab'
|
|
let g:ycm_auto_hover = ''
|
|
|
|
let g:preferred_rust_root = trim(system("rustup toolchain list -v | grep default | sed 's|[^/]*||'"))
|
|
|
|
if isdirectory(g:preferred_rust_root)
|
|
let g:ycm_rust_toolchain_root = g:preferred_rust_root
|
|
endif
|
|
|
|
function! ToggleYCM()
|
|
if g:ycm_auto_trigger
|
|
let g:ycm_auto_trigger = 0
|
|
echohl DiffDelete | echo "YouCompleteMe autocompletion disabled" | echohl None
|
|
else
|
|
let g:ycm_auto_trigger = 1
|
|
echohl DiffAdd | echo "YouCompleteMe autocompletion enabled" | echohl None
|
|
endif
|
|
endfunction
|
|
|
|
nnoremap <S-y> :call ToggleYCM()<CR>
|
|
nnoremap gd :YcmCompleter GoToDefinition<CR>
|
|
|
|
augroup ycm_hover
|
|
autocmd FileType rust,typescript,javascript,python nnoremap <silent><buffer> ? <Plug>(YCMHover)
|
|
augroup end
|