aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Vigouroux <tomvig38@gmail.com>2020-11-16 11:33:05 +0100
committerGitHub <noreply@github.com>2020-11-16 11:33:05 +0100
commit6169167f90ba316b01cc64046ca46774bb1a22d7 (patch)
tree1227fdb15ca5cf9f04c1884d7751fda381cfe774
parent1b8867ab39ecc25d454ca67e3cb8b3ef5fca9ed3 (diff)
parentecbcca44e7ea3b0d2a6cd64fe4c17b869bbdbd54 (diff)
downloadrneovim-6169167f90ba316b01cc64046ca46774bb1a22d7.tar.gz
rneovim-6169167f90ba316b01cc64046ca46774bb1a22d7.tar.bz2
rneovim-6169167f90ba316b01cc64046ca46774bb1a22d7.zip
Merge pull request #13300 from rockerBOO/docs-nvim_lsp-to-lspconfig
docs: Update nvim_lsp to lspconfig
-rw-r--r--.github/ISSUE_TEMPLATE/lsp_bug_report.md2
-rw-r--r--runtime/doc/lsp.txt6
2 files changed, 4 insertions, 4 deletions
diff --git a/.github/ISSUE_TEMPLATE/lsp_bug_report.md b/.github/ISSUE_TEMPLATE/lsp_bug_report.md
index 0e5155c7ac..a6fd0c9ead 100644
--- a/.github/ISSUE_TEMPLATE/lsp_bug_report.md
+++ b/.github/ISSUE_TEMPLATE/lsp_bug_report.md
@@ -13,7 +13,7 @@ labels: bug, lsp
- Operating system/version:
<details>
-<summary>nvim -c ":checkhealth nvim nvim_lsp"</summary>
+<summary>nvim -c ":checkhealth nvim lspconfig"</summary>
<!-- Paste the results from `nvim -c ":checkhealth nvim nvim_lsp"` here. -->
diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt
index e29748fdff..4cab716df0 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, {