aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGithub Actions <actions@github>2020-01-31 10:21:09 +0000
committerGithub Actions <actions@github>2020-01-31 10:21:09 +0000
commit9c9687f1339809a9ebfb3994c967abb473517684 (patch)
treefe803313547b39a6b611a50e2949337db931a0df
parentdoc #108 (diff)
downloadnvim-lspconfig-9c9687f1339809a9ebfb3994c967abb473517684.tar
nvim-lspconfig-9c9687f1339809a9ebfb3994c967abb473517684.tar.gz
nvim-lspconfig-9c9687f1339809a9ebfb3994c967abb473517684.tar.bz2
nvim-lspconfig-9c9687f1339809a9ebfb3994c967abb473517684.tar.lz
nvim-lspconfig-9c9687f1339809a9ebfb3994c967abb473517684.tar.xz
nvim-lspconfig-9c9687f1339809a9ebfb3994c967abb473517684.tar.zst
nvim-lspconfig-9c9687f1339809a9ebfb3994c967abb473517684.zip
[docgen] Update README.md
skip-checks: true
-rw-r--r--README.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/README.md b/README.md
index e551ddc9..e5d79b38 100644
--- a/README.md
+++ b/README.md
@@ -29,8 +29,8 @@ Help us create configs for *all the LSPs!*
```
:Plug 'neovim/nvim-lsp'
```
-- Call `:packadd nvim-lsp` in your config if you installed nvim-lsp to
- 'packpath' or if you use a package manager such as minpac.
+- Call `:packadd nvim-lsp` in your vimrc if you installed nvim-lsp to
+ `'packpath'` or if you use a package manager such as minpac.
## Usage
@@ -38,7 +38,7 @@ Each config provides a `setup()` function, to initialize the server with
reasonable defaults and some server-specific things like commands or different
diagnostics.
- vim.api.nvim_command('packadd nvim-lsp')
+ vim.cmd('packadd nvim-lsp')
require'nvim_lsp'.<config>.setup{name=…, settings = {…}, …}
Find the [config](#configurations) for your language, then paste the example
@@ -53,7 +53,7 @@ config provides `nvim_lsp.texlab.buf_build({bufnr})`.
To use the defaults, just call `setup()` with an empty `config` parameter.
For the `gopls` config, that would be:
- vim.api.nvim_command('packadd nvim-lsp')
+ vim.cmd('packadd nvim-lsp')
require'nvim_lsp'.gopls.setup{}
### Example: override some defaults