diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2020-01-31 02:20:41 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-31 02:20:41 -0800 |
| commit | 4107425f5cb196482e3c237b4dcdafa816ce7d5b (patch) | |
| tree | fb64b660a5295bab6137718df007fc0dc190c83a /scripts | |
| parent | pyls_ms: bump auto-install version #99 (diff) | |
| download | nvim-lspconfig-4107425f5cb196482e3c237b4dcdafa816ce7d5b.tar nvim-lspconfig-4107425f5cb196482e3c237b4dcdafa816ce7d5b.tar.gz nvim-lspconfig-4107425f5cb196482e3c237b4dcdafa816ce7d5b.tar.bz2 nvim-lspconfig-4107425f5cb196482e3c237b4dcdafa816ce7d5b.tar.lz nvim-lspconfig-4107425f5cb196482e3c237b4dcdafa816ce7d5b.tar.xz nvim-lspconfig-4107425f5cb196482e3c237b4dcdafa816ce7d5b.tar.zst nvim-lspconfig-4107425f5cb196482e3c237b4dcdafa816ce7d5b.zip | |
doc #108
- mention :packadd
- more renames
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/README_template.md | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/README_template.md b/scripts/README_template.md index 8a0f8145..044fd4b3 100644 --- a/scripts/README_template.md +++ b/scripts/README_template.md @@ -29,12 +29,16 @@ Help us create configs for *all the LSPs!* ``` :Plug 'neovim/nvim-lsp' ``` +- 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 Each config provides a `setup()` function, to initialize the server with reasonable defaults and some server-specific things like commands or different diagnostics. + vim.cmd('packadd nvim-lsp') require'nvim_lsp'.<config>.setup{name=…, settings = {…}, …} Find the [config](#configurations) for your language, then paste the example @@ -49,6 +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.cmd('packadd nvim-lsp') require'nvim_lsp'.gopls.setup{} ### Example: override some defaults |
