Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Auto configurations for Language Server for vim-lsp

License

NotificationsYou must be signed in to change notification settings

mattn/vim-lsp-settings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Auto configurations for Language Server forvim-lsp

Introduction

Language Servers is not easily to install. Visual Studio Code provide easy way to install/update Language Server and Language Server Client. This plugin provide same feature on Vim.

Installation instruction

Forvim-plug plugin manager:

Plug'prabirshrestha/async.vim'Plug'prabirshrestha/asyncomplete.vim'Plug'prabirshrestha/asyncomplete-lsp.vim'Plug'prabirshrestha/vim-lsp'Plug'mattn/vim-lsp-settings'

You need to install bothvim-lsp and its accompanying plugins and vim-lsp-settings.

Notice

If you use plugin manager that is merging plugins (ex. dein), Please setting stop merging work(ex. dein / merged = 0).

reason:

Servers are installed in ./servers directory at the caching area.But when rebuild the cache, any merging plugin manager erases old cached files(include ./servers and server execute files) before install.

Usage

If you install rls already, you can use rls without configurations. But if you not installed rls yet, you can install it by followingthis instruction.

If you install clangd already, you can use clangd for C/C++ without configurations. But if you install clang with named clangd-6.0, you can replace executable like below:

letg:lsp_settings= {\'clangd': {'cmd': ['clangd-6.0']}\}

Overridable keys are:

  • cmd (List ex:['clangd-6.0', '-enable-snippets'])
  • initialization_options (Dictionary)
  • whitelist (List)
  • blacklist (List)
  • config (Dictionary)
  • workspace_config (Dictionary)

If you install ruby but not solargraph, you can install solargraph with following command.

:LspInstallServer

Currently, no way to uninstall/update server. Run this command again, newer version will be installed.

Supported Languages

LanguageLanguage ServerLocal Install
C/C++clangdNo
C#omnisharpYes
Clojureclojure-lspYes
TypeScripttypescript-language-serverYes
JavaScriptjavascript-typescript-langserver/typescript-language-serverYes
PythonpylsYes
RustrlsNo
GogoplsYes
RubysolargraphYes
PHPintelephenseYes
Javaeclipse-jdt-lsYes
Luaemmylua-lsYes
Vimvim-language-serverYes
Bashbash-language-serverYes
Terraformterraform-lspYes
Dockerfiledockerfile-language-server-nodejsYes
YAMLyaml-language-serverYes
XMLlsp4xmlYes
FortranfortlsYes
ScalaMetalsYes
Elmelm-language-serverYes
JSONjson-languageserverYes
Swiftsourcekit-lspNo
COBOLcobol-language-supportYes

License

MIT

Author

Yasuhiro Matsumoto (a.k.a. mattn)

About

Auto configurations for Language Server for vim-lsp

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Contributors185


[8]ページ先頭

©2009-2025 Movatter.jp