From bbc5405169005a17e7b8522854f68416f0767208 Mon Sep 17 00:00:00 2001 From: Michael Lingelbach Date: Sat, 27 Nov 2021 09:44:50 -0500 Subject: docs: update adding a new server example (#1499) --- doc/lspconfig.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/lspconfig.txt b/doc/lspconfig.txt index 82be54d5..d952cacd 100644 --- a/doc/lspconfig.txt +++ b/doc/lspconfig.txt @@ -349,7 +349,7 @@ The three steps for adding and enabling a new server configuration are: local configs = require 'lspconfig.configs' -- Check if the config is already defined (useful when reloading this file) - if not lspconfig.foo_lsp then + if not configs.foo_lsp then configs.foo_lsp = { default_config = { cmd = {'/home/neovim/lua-language-server/run.sh'}; -- cgit v1.2.3-70-g09d2