aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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, {