update README

This commit is contained in:
windwp 2021-06-17 12:33:40 +07:00
parent 0d7f288dae
commit 1197ec9d91

View File

@ -34,6 +34,22 @@ require('nvim-ts-autotag').setup()
```
# Enable update on insert
if you have that issue on you need to tell lsp diagnostic update in insert
```lua
vim.lsp.handlers['textDocument/publishDiagnostics'] = vim.lsp.with(
vim.lsp.diagnostic.on_publish_diagnostics,
{
underline = true,
virtual_text = {
spacing = 5,
severity_limit = 'Warning',
},
update_in_insert = true,
}
)
```
## Default values
``` lua