Added error for solargraph
This commit is contained in:
parent
9a8e5ff93c
commit
62fdfd5500
1 changed files with 5 additions and 12 deletions
17
vim/vimrc
17
vim/vimrc
|
@ -29,7 +29,6 @@ Plug 'prabirshrestha/asyncomplete-lsp.vim'
|
||||||
Plug 'machakann/vim-highlightedyank'
|
Plug 'machakann/vim-highlightedyank'
|
||||||
Plug 'vim-airline/vim-airline'
|
Plug 'vim-airline/vim-airline'
|
||||||
Plug 'vim-airline/vim-airline-themes'
|
Plug 'vim-airline/vim-airline-themes'
|
||||||
"Plug 'ctrlpvim/ctrlp.vim'
|
|
||||||
Plug 'morhetz/gruvbox'
|
Plug 'morhetz/gruvbox'
|
||||||
Plug 'tpope/vim-fugitive'
|
Plug 'tpope/vim-fugitive'
|
||||||
Plug 'mhinz/vim-signify'
|
Plug 'mhinz/vim-signify'
|
||||||
|
@ -47,17 +46,6 @@ let g:airline#extensions#tabline#enabled = 1
|
||||||
let g:airline_powerline_fonts = 1
|
let g:airline_powerline_fonts = 1
|
||||||
let g:airline#extensions#tabline#formatter = 'unique_tail_improved'
|
let g:airline#extensions#tabline#formatter = 'unique_tail_improved'
|
||||||
|
|
||||||
"CtrlP settings
|
|
||||||
let g:ctrlp_open_new_file = 'v'
|
|
||||||
let g:ctrlp_open_multiple_files = '2v'
|
|
||||||
let g:ctrlp_arg_map = 1
|
|
||||||
if executable('rg')
|
|
||||||
let g:ctrlp_user_command = 'rg --files %s'
|
|
||||||
let g:ctrlp_use_caching = 1
|
|
||||||
let g:ctrlp_working_path_mode = 'ra'
|
|
||||||
let g:ctrlp_switch_buffer = 'et'
|
|
||||||
endif
|
|
||||||
|
|
||||||
"LSP stuff
|
"LSP stuff
|
||||||
"Ruby
|
"Ruby
|
||||||
if executable('solargraph')
|
if executable('solargraph')
|
||||||
|
@ -68,7 +56,12 @@ if executable('solargraph')
|
||||||
\ 'initialization_options': {"diagnostics": "true"},
|
\ 'initialization_options': {"diagnostics": "true"},
|
||||||
\ 'whitelist': ['ruby'],
|
\ 'whitelist': ['ruby'],
|
||||||
\ })
|
\ })
|
||||||
|
else
|
||||||
|
echohl ErrorMsg
|
||||||
|
echom 'Sorry, `solargraph` is not installed. Run `gem install solargraph` once ruby is set up to install.'
|
||||||
|
echohl NONE
|
||||||
endif
|
endif
|
||||||
|
|
||||||
"Rust
|
"Rust
|
||||||
if executable('rls')
|
if executable('rls')
|
||||||
au User lsp_setup call lsp#register_server({
|
au User lsp_setup call lsp#register_server({
|
||||||
|
|
Loading…
Add table
Reference in a new issue