diff options
author | Guangxiong Lin <[email protected]> | 2023-10-16 23:42:49 +0800 |
---|---|---|
committer | Guangxiong Lin <[email protected]> | 2023-10-16 23:42:49 +0800 |
commit | efa422e91fb8b5d0cda5b00234c7682f24b6bf37 (patch) | |
tree | 9476d54da18e8f1e7c9a9ca0954b67e2205a548f | |
parent | 90339b3e7fc55e18a1c4326ff48e67c78b11411a (diff) | |
download | dotfiles-efa422e91fb8b5d0cda5b00234c7682f24b6bf37.tar.gz dotfiles-efa422e91fb8b5d0cda5b00234c7682f24b6bf37.tar.bz2 dotfiles-efa422e91fb8b5d0cda5b00234c7682f24b6bf37.zip |
Add ruby vim config
-rw-r--r-- | .vim/after/plugin/lsp.vim | 8 | ||||
-rw-r--r-- | .vim/after/plugin/minpac.vim | 1 | ||||
-rw-r--r-- | .vim/after/plugin/mucomplete.vim | 2 |
3 files changed, 11 insertions, 0 deletions
diff --git a/.vim/after/plugin/lsp.vim b/.vim/after/plugin/lsp.vim index 63a9fd2..8a853e7 100644 --- a/.vim/after/plugin/lsp.vim +++ b/.vim/after/plugin/lsp.vim @@ -59,6 +59,14 @@ if executable('godot') \ }) endif +if executable('solargraph') + au User lsp_setup call lsp#register_server({ + \ 'name': 'solargraph', + \ 'cmd': {server_info->['solargraph', 'stdio']}, + \ 'allowlist': ['ruby'], + \ }) +endif + " https://github.com/mickael-menu/zk " if executable('zk') " au User lsp_setup call lsp#register_server({ diff --git a/.vim/after/plugin/minpac.vim b/.vim/after/plugin/minpac.vim index a6eb545..6165b2b 100644 --- a/.vim/after/plugin/minpac.vim +++ b/.vim/after/plugin/minpac.vim @@ -99,6 +99,7 @@ function! InitMinpac() abort call minpac#add('https://github.com/davidhalter/jedi-vim', {'type': 'opt'}) call minpac#add('https://github.com/rust-lang/rust.vim', {'type': 'start'}) call minpac#add('https://github.com/vim-ruby/vim-ruby', {'type': 'start'}) + call minpac#add('https://github.com/tpope/vim-rails', {'type': 'start'}) " misc call minpac#add('https://github.com/freitass/todo.txt-vim.git', {'type': 'opt'}) diff --git a/.vim/after/plugin/mucomplete.vim b/.vim/after/plugin/mucomplete.vim index 99b59c8..b955c14 100644 --- a/.vim/after/plugin/mucomplete.vim +++ b/.vim/after/plugin/mucomplete.vim @@ -23,4 +23,6 @@ let g:mucomplete#can_complete.cuda = { 'omni': s:cpp_cond } let s:ledger_cond = { t -> t =~# '\%(:\)$' } let g:mucomplete#can_complete.ledger = { 'omni': s:ledger_cond } +let g:mucomplete#can_complete.ruby = { 'omni': s:cpp_cond } + packadd vim-mucomplete |