]> git.lizzy.rs Git - rust.git/commitdiff
Add note about neovim's built in language server
authorAshkan Kiani <ashkan.k.kiani@gmail.com>
Sat, 23 Nov 2019 09:58:13 +0000 (01:58 -0800)
committerGitHub <noreply@github.com>
Sat, 23 Nov 2019 09:58:13 +0000 (01:58 -0800)
docs/user/README.md

index bfb19044924f4be6f20f25f04d52f459692ccb50..f3fdac319d078520aa4bfc3d535f703dcca573ef 100644 (file)
@@ -132,6 +132,11 @@ to load path and require it in `init.el`
 
 ## Vim and NeoVim
 
+Neovim 0.5 has a built in language server. For a quick start configuration of
+rust-analyzer, use [neovim/nvim-lsp](https://github.com/neovim/nvim-lsp).
+Once `neovim/nvim-lsp` is installed, you can use `call nvim_lsp#setup("rust_analyzer", {})`
+or `lua require'nvim_lsp'.rust_analyzer.setup({})` to quickly get set up.
+
 * Install coc.nvim by following the instructions at [coc.nvim]
   - You will need nodejs installed.
   - You may want to include some of the sample vim configurations [from here][coc-vim-conf]