diff options
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/README_template.md | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/README_template.md b/scripts/README_template.md index 6ee2503e..fcc023fd 100644 --- a/scripts/README_template.md +++ b/scripts/README_template.md @@ -116,6 +116,19 @@ end nvim_lsp.foo_lsp.setup{} ``` +### Example: orverride default config + +If you want to change default configs for all servers, you can override default_config like this. + +```lua +local nvim_lsp = require'nvim_lsp' +nvim_lsp.util.default_config = vim.tbl_extend( + "force", + nvim_lsp.util.default_config, + { log_level = lsp.protocol.MessageType.Warning.Error } +) +``` + ### Installing a language server Configs may provide an `install()` function. Then you can use |
