From 46ab054b1d4bff4ae775303d18f20307b19dd0b4 Mon Sep 17 00:00:00 2001 From: rockerBOO Date: Mon, 16 Nov 2020 01:10:55 -0500 Subject: docs: Update nvim_lsp to lspconfig --- runtime/doc/lsp.txt | 6 +++--- 1 file 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 " 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, { -- cgit From fb19663851714d55dd4944a690692a1a50d0895e Mon Sep 17 00:00:00 2001 From: rockerBOO Date: Mon, 16 Nov 2020 01:13:15 -0500 Subject: docs: Follow conventions --- runtime/doc/lsp.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt index 530351acde..4cab716df0 100644 --- a/runtime/doc/lsp.txt +++ b/runtime/doc/lsp.txt @@ -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()`: > - require'lspconfig'.rust_analyzer.setup { + require('lspconfig').rust_analyzer.setup { handlers = { ["textDocument/publishDiagnostics"] = vim.lsp.with( vim.lsp.diagnostic.on_publish_diagnostics, { -- cgit From ecbcca44e7ea3b0d2a6cd64fe4c17b869bbdbd54 Mon Sep 17 00:00:00 2001 From: rockerBOO Date: Mon, 16 Nov 2020 03:47:23 -0500 Subject: docs: Update ISSUE_TEMPLATE for lsp_bug_report --- .github/ISSUE_TEMPLATE/lsp_bug_report.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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:
-nvim -c ":checkhealth nvim nvim_lsp" +nvim -c ":checkhealth nvim lspconfig" -- cgit