<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rneovim.git/test/functional/lua/diagnostic_spec.lua, branch usermarks</title>
<subtitle>Neovim fork with Rahm's personal hacks.</subtitle>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/'/>
<entry>
<title>feat(diagnostic): vim.diagnostic.is_disabled() #21527</title>
<updated>2023-01-12T16:57:39+00:00</updated>
<author>
<name>Raphael</name>
<email>glephunter@gmail.com</email>
</author>
<published>2023-01-12T16:57:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=572cd8031dd7c91ac9e17cbdfab16d87f1fed6b7'/>
<id>572cd8031dd7c91ac9e17cbdfab16d87f1fed6b7</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>feat(highlight): add DiagnosticOk (and associated) highlight groups (#21286)</title>
<updated>2022-12-28T16:01:40+00:00</updated>
<author>
<name>Oliver Marriott</name>
<email>rktjmp@users.noreply.github.com</email>
</author>
<published>2022-12-28T16:01:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=e6cae44cbf44d623bc89eb3323da043249c0f052'/>
<id>e6cae44cbf44d623bc89eb3323da043249c0f052</id>
<content type='text'>
The existing groups, Error, Hint, Info, Warn cover many use cases, but
neglect the occasion where a diagnostic message should communicate a
non-informative (not a Hint or Info) event. DiagnosticOk covers this
with a generic green colorscheme.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The existing groups, Error, Hint, Info, Warn cover many use cases, but
neglect the occasion where a diagnostic message should communicate a
non-informative (not a Hint or Info) event. DiagnosticOk covers this
with a generic green colorscheme.</pre>
</div>
</content>
</entry>
<entry>
<title>fix(diagnostic): clear stale cache on reset (#21454)</title>
<updated>2022-12-18T02:19:15+00:00</updated>
<author>
<name>Mathias Fußenegger</name>
<email>mfussenegger@users.noreply.github.com</email>
</author>
<published>2022-12-18T02:19:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=1743359235206cbd9da2e0589f1caba37cce3b8c'/>
<id>1743359235206cbd9da2e0589f1caba37cce3b8c</id>
<content type='text'>
The BufWipeout autocmd is not 100% reliable and may leave stale entries
in the cache. This is sort of a hack/workaround to ensure
`vim.diagnostic.reset` calls don't fail if there are stale cache entries
but instead clears them

Fixes errors like

    Error executing vim.schedule lua callback: /usr/share/nvim/runtime/lua/vim/diagnostic.lua:1458: Invalid buffer id: 22
    stack traceback:
            [C]: in function 'nvim_exec_autocmds'
            /usr/share/nvim/runtime/lua/vim/diagnostic.lua:1458: in function 'reset'</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The BufWipeout autocmd is not 100% reliable and may leave stale entries
in the cache. This is sort of a hack/workaround to ensure
`vim.diagnostic.reset` calls don't fail if there are stale cache entries
but instead clears them

Fixes errors like

    Error executing vim.schedule lua callback: /usr/share/nvim/runtime/lua/vim/diagnostic.lua:1458: Invalid buffer id: 22
    stack traceback:
            [C]: in function 'nvim_exec_autocmds'
            /usr/share/nvim/runtime/lua/vim/diagnostic.lua:1458: in function 'reset'</pre>
</div>
</content>
</entry>
<entry>
<title>feat(diagnostic): add `suffix` option to `virt_text` config (#21140)</title>
<updated>2022-11-20T23:57:36+00:00</updated>
<author>
<name>beardedsakimonkey</name>
<email>54521218+beardedsakimonkey@users.noreply.github.com</email>
</author>
<published>2022-11-20T23:57:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=126ef65e5b3ff0da68bfe166be0bb0a33664142b'/>
<id>126ef65e5b3ff0da68bfe166be0bb0a33664142b</id>
<content type='text'>
This introduces a `suffix` option to the `virt_text` config in
`vim.diagnostic.config()`. The suffix can either be a string which is appended
to the diagnostic message or a function returning such. The function receives a
`diagnostic` argument, which is the diagnostic table of the last diagnostic (the
one whose message is rendered as virt text).</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This introduces a `suffix` option to the `virt_text` config in
`vim.diagnostic.config()`. The suffix can either be a string which is appended
to the diagnostic message or a function returning such. The function receives a
`diagnostic` argument, which is the diagnostic table of the last diagnostic (the
one whose message is rendered as virt text).</pre>
</div>
</content>
</entry>
<entry>
<title>feat(diagnostic): add `suffix` option to `open_float()` (#21130)</title>
<updated>2022-11-20T20:09:35+00:00</updated>
<author>
<name>beardedsakimonkey</name>
<email>54521218+beardedsakimonkey@users.noreply.github.com</email>
</author>
<published>2022-11-20T20:09:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=fbce9f421ad1ad466126a24524ade9df978486d5'/>
<id>fbce9f421ad1ad466126a24524ade9df978486d5</id>
<content type='text'>
Closes #18687

This introduces a `suffix` option to `vim.diagnostic.open_float()` (and
consequently `vim.diagnostic.config()`) that appends some text to each
diagnostic in the float.

It accepts the same types as `prefix`. For multiline diagnostics, the suffix is
only appended to the last line. By default, the suffix will render the
diagnostic error code, if any.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Closes #18687

This introduces a `suffix` option to `vim.diagnostic.open_float()` (and
consequently `vim.diagnostic.config()`) that appends some text to each
diagnostic in the float.

It accepts the same types as `prefix`. For multiline diagnostics, the suffix is
only appended to the last line. By default, the suffix will render the
diagnostic error code, if any.</pre>
</div>
</content>
</entry>
<entry>
<title>perf(diagnostic): use api variable and improve validate (#21111)</title>
<updated>2022-11-19T13:41:47+00:00</updated>
<author>
<name>Raphael</name>
<email>glephunter@gmail.com</email>
</author>
<published>2022-11-19T13:41:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=6e8ed5abaa9c33d1d78ab7ff5b07dd5bac623a1d'/>
<id>6e8ed5abaa9c33d1d78ab7ff5b07dd5bac623a1d</id>
<content type='text'>
* fix(diagnostic): use api variable and improve validate

* fix: fix test case</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* fix(diagnostic): use api variable and improve validate

* fix: fix test case</pre>
</div>
</content>
</entry>
<entry>
<title>feat(test): add Lua forms for API methods (#20152)</title>
<updated>2022-11-14T10:01:35+00:00</updated>
<author>
<name>Lewis Russell</name>
<email>lewis6991@gmail.com</email>
</author>
<published>2022-11-14T10:01:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=e8cc489accc435076afb4fdf89778b64f0a48473'/>
<id>e8cc489accc435076afb4fdf89778b64f0a48473</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>feat(diagnostic): pass diagnostics as data to DiagnosticChanged autocmd (#20173)</title>
<updated>2022-09-13T14:33:39+00:00</updated>
<author>
<name>Gregory Anders</name>
<email>8965202+gpanders@users.noreply.github.com</email>
</author>
<published>2022-09-13T14:33:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=1970d2ac43059639e4e2c83223d86397b38786ff'/>
<id>1970d2ac43059639e4e2c83223d86397b38786ff</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fix(diagnostic): remove buf from cache on `BufWipeout` (#20099)</title>
<updated>2022-09-07T02:55:03+00:00</updated>
<author>
<name>Sean Dewar</name>
<email>seandewar@users.noreply.github.com</email>
</author>
<published>2022-09-07T02:55:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=f32fd19f1eedbd75e6a37b73f28cf8761e0e875c'/>
<id>f32fd19f1eedbd75e6a37b73f28cf8761e0e875c</id>
<content type='text'>
Doing so on `BufDelete` has issues:
  - `BufDelete` is also fired for listed buffers that are made unlisted.
  - `BufDelete` is not fired for unlisted buffers that are deleted.

This means that diagnostics will be lost for a buffer that becomes unlisted.

It also means that if an entry exists for an unlisted buffer, deleting that
buffer later will not remove its entry from the cache (and you may see "Invalid
buffer id" errors when using diagnostic functions if it was wiped).

Instead, remove a buffer from the cache if it is wiped out.
This means simply `:bd`ing a buffer will not clear its diagnostics now.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Doing so on `BufDelete` has issues:
  - `BufDelete` is also fired for listed buffers that are made unlisted.
  - `BufDelete` is not fired for unlisted buffers that are deleted.

This means that diagnostics will be lost for a buffer that becomes unlisted.

It also means that if an entry exists for an unlisted buffer, deleting that
buffer later will not remove its entry from the cache (and you may see "Invalid
buffer id" errors when using diagnostic functions if it was wiped).

Instead, remove a buffer from the cache if it is wiped out.
This means simply `:bd`ing a buffer will not clear its diagnostics now.</pre>
</div>
</content>
</entry>
<entry>
<title>fix(lsp): clean the diagnostic cache when buffer delete (#19449)</title>
<updated>2022-08-29T17:09:14+00:00</updated>
<author>
<name>Raphael</name>
<email>glephunter@gmail.com</email>
</author>
<published>2022-08-29T17:09:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=efacb6e974fa6391bcc916749103f04fa9b9f6f7'/>
<id>efacb6e974fa6391bcc916749103f04fa9b9f6f7</id>
<content type='text'>
Co-authored-by: Gregory Anders &lt;greg@gpanders.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Co-authored-by: Gregory Anders &lt;greg@gpanders.com&gt;</pre>
</div>
</content>
</entry>
</feed>
