From 96c83a7d61a31f402b6c88f6bcc3ecc12fa68e9c Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Fri, 27 Oct 2023 08:09:59 +0800 Subject: Revert "Remove solargraph" This reverts commit d90a88556bbd704ca9cccdb6e225d910d258cea6. --- .vim/after/plugin/lsp.vim | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to '.vim/after/plugin/lsp.vim') 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({ -- cgit v1.2.3