aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGithub Actions <actions@github>2019-12-09 05:22:32 +0000
committerGithub Actions <actions@github>2019-12-09 05:22:32 +0000
commit409d6f8febace02606ef30a8e54377d3c424bc29 (patch)
treee3882fd5041bcf9396f7af5c4a52f2a2d99c43ab
parentdoc (diff)
downloadnvim-lspconfig-409d6f8febace02606ef30a8e54377d3c424bc29.tar
nvim-lspconfig-409d6f8febace02606ef30a8e54377d3c424bc29.tar.gz
nvim-lspconfig-409d6f8febace02606ef30a8e54377d3c424bc29.tar.bz2
nvim-lspconfig-409d6f8febace02606ef30a8e54377d3c424bc29.tar.lz
nvim-lspconfig-409d6f8febace02606ef30a8e54377d3c424bc29.tar.xz
nvim-lspconfig-409d6f8febace02606ef30a8e54377d3c424bc29.tar.zst
nvim-lspconfig-409d6f8febace02606ef30a8e54377d3c424bc29.zip
[docgen] Update README.md
skip-checks: true
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index 56635169..0cac52c0 100644
--- a/README.md
+++ b/README.md
@@ -34,7 +34,7 @@ Each config provides a `setup()` function, to initialize the server with
reasonable defaults and some server-specific things like commands or different
diagnostics.
- nvim_lsp[name].setup{name=…, settings = {…}, …}
+ require'nvim_lsp'.<config>.setup{name=…, settings = {…}, …}
Find the [config](#configurations) for your language, then paste the example
given there to your `init.vim`. **All examples are given in Lua,** see `:help
@@ -86,7 +86,7 @@ To configure a custom/private server, just require `nvim_lsp/skeleton` and do
the same as we do if we were adding it to the repository itself.
1. Define the config: `configs.foo_lsp = { … }`
-2. Call `nvim_lsp.foo_lsp.setup{}`
+2. Call `setup()`: `require'nvim_lsp'.foo_lsp.setup{}`
```lua
local nvim_lsp = require'nvim_lsp'