docs(news): add diagnostic suffix (#21141)

This commit is contained in:
beardedsakimonkey 2022-11-24 01:42:05 +00:00 committed by GitHub
parent ddea80ebd6
commit c9adbcafae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,6 +39,11 @@ NEW FEATURES *news-features*
The following new APIs or features were added. The following new APIs or features were added.
• |vim.diagnostic.open_float()| (and therefore |vim.diagnostic.config()|) now
accepts a `suffix` option which, by default, renders LSP error codes.
Similarly, the `virtual_text` configuration in |vim.diagnostic.config()| now
has a `suffix` option which does nothing by default.
• |vim.secure.read()| reads a file and prompts the user if it should be • |vim.secure.read()| reads a file and prompts the user if it should be
trusted and, if so, returns the file's contents. trusted and, if so, returns the file's contents.