diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2019-12-08 21:21:43 -0800 |
|---|---|---|
| committer | Justin M. Keyes <justinkz@gmail.com> | 2019-12-08 21:21:55 -0800 |
| commit | 451be8416a5d0470823fd5374d4030f4a4d437b8 (patch) | |
| tree | 768d5bfa5832cc870ea44948a41099dc4bdc050b /scripts | |
| parent | Fix typo in dockerls (#67) (diff) | |
| download | nvim-lspconfig-451be8416a5d0470823fd5374d4030f4a4d437b8.tar nvim-lspconfig-451be8416a5d0470823fd5374d4030f4a4d437b8.tar.gz nvim-lspconfig-451be8416a5d0470823fd5374d4030f4a4d437b8.tar.bz2 nvim-lspconfig-451be8416a5d0470823fd5374d4030f4a4d437b8.tar.lz nvim-lspconfig-451be8416a5d0470823fd5374d4030f4a4d437b8.tar.xz nvim-lspconfig-451be8416a5d0470823fd5374d4030f4a4d437b8.tar.zst nvim-lspconfig-451be8416a5d0470823fd5374d4030f4a4d437b8.zip | |
doc
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/README_template.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/README_template.md b/scripts/README_template.md index 0a1c55c0..03c3cdac 100644 --- a/scripts/README_template.md +++ b/scripts/README_template.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' |
