GitHub - mattn/vim-lsp-settings: Auto configurations for Language Server for vim...
source link: https://github.com/mattn/vim-lsp-settings
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
README.md
vim-lsp-settings
Auto configurations for Language Server for vim-lsp
Instroduction
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.
Usage
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:
let g: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
Supported Languages
- C/C++ (clangd)
- Clojure (clojure-lsp)
- TypeScript (typescript-language-server)
- JavaScript (javascript-typescript-langserver/typescript-language-server)
- Python (pyls)
- Rust (rls)
- Go (gopls)
- Ruby (solargraph)
- PHP (intelephense-server)
- Java (eclipse-jdt-ls)
- Lua (emmylua-ls)
- Vim (vim-language-server)
License
MIT
Author
Yasuhiro Matsumoto (a.k.a. mattn)
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK