aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2023-10-27 08:09:59 +0800
committerGuangxiong Lin <[email protected]>2023-10-27 08:09:59 +0800
commit96c83a7d61a31f402b6c88f6bcc3ecc12fa68e9c (patch)
tree853619a638e5196eb05642ac234f82a64304c3c4
parent0385b4142027cf596f5b3f879fd5f2505dbf9aeb (diff)
downloaddotfiles-96c83a7d61a31f402b6c88f6bcc3ecc12fa68e9c.tar.gz
dotfiles-96c83a7d61a31f402b6c88f6bcc3ecc12fa68e9c.tar.bz2
dotfiles-96c83a7d61a31f402b6c88f6bcc3ecc12fa68e9c.zip
Revert "Remove solargraph"
This reverts commit d90a88556bbd704ca9cccdb6e225d910d258cea6.
-rw-r--r--.vim/after/plugin/lsp.vim11
1 files changed, 11 insertions, 0 deletions
diff --git a/.vim/after/plugin/lsp.vim b/.vim/after/plugin/lsp.vim
index be41ceb..445df77 100644
--- a/.vim/after/plugin/lsp.vim
+++ b/.vim/after/plugin/lsp.vim
@@ -57,6 +57,17 @@ if executable('godot')
\ })
endif
+if executable('solargraph')
+ au User lsp_setup call lsp#register_server({
+ \ 'name': 'solargraph',
+ \ 'cmd': {server_info->['solargraph', 'stdio']},
+ \ 'initialization_options': {
+ \ 'diagnostics': 'true'
+ \ },
+ \ 'allowlist': ['ruby'],
+ \ })
+endif
+
" https://github.com/mickael-menu/zk
" if executable('zk')
" au User lsp_setup call lsp#register_server({