diff options
| author | Github Actions <actions@github> | 2020-03-09 17:33:32 +0000 |
|---|---|---|
| committer | Github Actions <actions@github> | 2020-03-09 17:33:32 +0000 |
| commit | 78b16eb3623c1c0d4433ca8e09c2cb661fa1a852 (patch) | |
| tree | f86a79d4f120c067d777be77b011c871c93837b6 | |
| parent | Merge pull request #166 from h-michael/readme (diff) | |
| download | nvim-lspconfig-78b16eb3623c1c0d4433ca8e09c2cb661fa1a852.tar nvim-lspconfig-78b16eb3623c1c0d4433ca8e09c2cb661fa1a852.tar.gz nvim-lspconfig-78b16eb3623c1c0d4433ca8e09c2cb661fa1a852.tar.bz2 nvim-lspconfig-78b16eb3623c1c0d4433ca8e09c2cb661fa1a852.tar.lz nvim-lspconfig-78b16eb3623c1c0d4433ca8e09c2cb661fa1a852.tar.xz nvim-lspconfig-78b16eb3623c1c0d4433ca8e09c2cb661fa1a852.tar.zst nvim-lspconfig-78b16eb3623c1c0d4433ca8e09c2cb661fa1a852.zip | |
[docgen] Update README.md
skip-checks: true
| -rw-r--r-- | README.md | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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 |
