25 lines
807 B
Text
25 lines
807 B
Text
|
" plugins: airline
|
||
|
let g:bufferline_echo = 0
|
||
|
let g:airline_powerline_fonts = 1
|
||
|
let g:airline#extensions#tabline#enabled = 1
|
||
|
|
||
|
" plugins: rust
|
||
|
let g:rustfmt_autosave = 1
|
||
|
|
||
|
" searching
|
||
|
let $FZF_DEFAULT_COMMAND = 'rg --files --no-messages "" .'
|
||
|
set grepprg=rg\ --vimgrep
|
||
|
let g:fzf_command_prefix = 'Fzf'
|
||
|
|
||
|
" :Find <term> runs `rg <term>` and passes it to fzf
|
||
|
command! -bang -nargs=* Find call fzf#vim#grep('rg --column --line-number --no-heading --fixed-strings --ignore-case --no-ignore --hidden --follow --glob "!.git/*" --color "always" '.shellescape(<q-args>), 1, <bang>0)
|
||
|
|
||
|
" register rust rls
|
||
|
if executable('rls')
|
||
|
au User lsp_setup call lsp#register_server({
|
||
|
\ 'name': 'rls',
|
||
|
\ 'cmd': {server_info->['rustup', 'run', 'stable', 'rls']},
|
||
|
\ 'whitelist': ['rust'],
|
||
|
\ })
|
||
|
endif
|