diff options
| author | Github Actions <actions@github> | 2020-01-31 10:21:09 +0000 |
|---|---|---|
| committer | Github Actions <actions@github> | 2020-01-31 10:21:09 +0000 |
| commit | 9c9687f1339809a9ebfb3994c967abb473517684 (patch) | |
| tree | fe803313547b39a6b611a50e2949337db931a0df | |
| parent | doc #108 (diff) | |
| download | nvim-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.md | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 |
