From: Yegappan Lakshmanan <4298407+yegappan@users.noreply.github.com> Date: Thu, 18 Feb 2021 16:15:17 +0000 (-0800) Subject: Update README.md X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=c44d72bb1b48e7db2f2c5b66622be78a9568ef53;p=vim-lsp.git Update README.md --- diff --git a/README.md b/README.md index cb286d0..366a906 100644 --- a/README.md +++ b/README.md @@ -42,11 +42,31 @@ To register a LSP server, add the following lines to your .vimrc file: \ 'path': '/usr/local/bin/bash-language-server', \ 'args': ['start'] \ }, + \ { + \ 'filetype': 'vim', + \ 'path': '/usr/local/bin/vim-language-server', + \ 'args': ['--stdio'] + \ }, + \ { + \ 'filetype': ['go', 'gomod'], + \ 'path': '/usr/local/bin/gopls', + \ 'args': [] + \ }, + \ { + \ 'filetype': ['python'], + \ 'path': '/usr/local/bin/pyls', + \ 'args': [] + \ }, + \ { + \ 'filetype': ['fortran'], + \ 'path': '/usr/local/bin/fortls', + \ 'args': ['--nthreads=1', '--use_signature_help', '--hover_signature'] + \ } \ ] call lsp#addServer(lspServers) ``` -The above lines add the LSP servers for C, C++, Javascript, Typescript and Shell script file types. +The above lines add the LSP servers for C, C++, Javascript, Typescript, Shell script, Vim script, Go and Python file types. To add a LSP server, the following information is needed: