aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrockerBOO <rockerboo@gmail.com>2020-11-16 01:10:55 -0500
committerrockerBOO <rockerboo@gmail.com>2020-11-16 01:10:55 -0500
commit46ab054b1d4bff4ae775303d18f20307b19dd0b4 (patch)
tree8f761ada017218589c35c180b3afda2a7f67acf7
parent1b8867ab39ecc25d454ca67e3cb8b3ef5fca9ed3 (diff)
downloadrneovim-46ab054b1d4bff4ae775303d18f20307b19dd0b4.tar.gz
rneovim-46ab054b1d4bff4ae775303d18f20307b19dd0b4.tar.bz2
rneovim-46ab054b1d4bff4ae775303d18f20307b19dd0b4.zip
docs: Update nvim_lsp to lspconfig
-rw-r--r--runtime/doc/lsp.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt
index e29748fdff..530351acde 100644
--- a/runtime/doc/lsp.txt
+++ b/runtime/doc/lsp.txt
@@ -30,7 +30,7 @@ Follow these steps to get LSP features:
2. Install a language server. Try ":LspInstall <tab>" or use your system
package manager to install the relevant language server:
https://microsoft.github.io/language-server-protocol/implementors/servers/
- 3. Add `lua require('nvim_lsp').xx.setup{…}` to your init.vim, where "xx" is
+ 3. Add `lua require('lspconfig').xx.setup{…}` to your init.vim, where "xx" is
the name of the relevant config. See the nvim-lspconfig README for details.
NOTE: Make sure to restart nvim after installing and configuring.
4. Check that an LSP client has attached to the current buffer: >
@@ -68,7 +68,7 @@ Example config (in init.vim): >
-- An example of configuring for `sumneko_lua`,
-- a language server for Lua.
-- First, you must run `:LspInstall sumneko_lua` for this to work.
- require('nvim_lsp').sumneko_lua.setup({
+ require('lspconfig').sumneko_lua.setup({
-- An example of settings for an LSP server.
-- For more options, see nvim-lspconfig
settings = {
@@ -297,7 +297,7 @@ To configure the behavior of a builtin |lsp-handler|, the conenvience method
<
or if using 'nvim-lspconfig', you can use the {handlers} key of `setup()`: >
- nvim_lsp.rust_analyzer.setup {
+ require'lspconfig'.rust_analyzer.setup {
handlers = {
["textDocument/publishDiagnostics"] = vim.lsp.with(
vim.lsp.diagnostic.on_publish_diagnostics, {