From efa422e91fb8b5d0cda5b00234c7682f24b6bf37 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Mon, 16 Oct 2023 23:42:49 +0800 Subject: Add ruby vim config --- .vim/after/plugin/lsp.vim | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to '.vim/after/plugin/lsp.vim') 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({ -- cgit v1.2.3