aboutsummaryrefslogtreecommitdiff
path: root/.vim
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2023-10-16 23:42:49 +0800
committerGuangxiong Lin <[email protected]>2023-10-16 23:42:49 +0800
commitefa422e91fb8b5d0cda5b00234c7682f24b6bf37 (patch)
tree9476d54da18e8f1e7c9a9ca0954b67e2205a548f /.vim
parent90339b3e7fc55e18a1c4326ff48e67c78b11411a (diff)
downloaddotfiles-efa422e91fb8b5d0cda5b00234c7682f24b6bf37.tar.gz
dotfiles-efa422e91fb8b5d0cda5b00234c7682f24b6bf37.tar.bz2
dotfiles-efa422e91fb8b5d0cda5b00234c7682f24b6bf37.zip
Add ruby vim config
Diffstat (limited to '.vim')
-rw-r--r--.vim/after/plugin/lsp.vim8
-rw-r--r--.vim/after/plugin/minpac.vim1
-rw-r--r--.vim/after/plugin/mucomplete.vim2
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