From 1197ec9d91fef9278903c6f25f3be4468d50d572 Mon Sep 17 00:00:00 2001 From: windwp Date: Thu, 17 Jun 2021 12:33:40 +0700 Subject: [PATCH] update README --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index 3f8395a..3bd5257 100644 --- a/README.md +++ b/README.md @@ -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