<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rneovim.git/test/functional/lua/diagnostic_spec.lua, branch fix_repeatcmdline</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>fix(diagnostic): virtual_text prefix function should have index and total (#25801)</title>
<updated>2023-10-27T13:17:46+00:00</updated>
<author>
<name>Jongwook Choi</name>
<email>wookayin@gmail.com</email>
</author>
<published>2023-10-27T13:17:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=add1b10b79011d1af61419a63cc8ef4645f45bbf'/>
<id>add1b10b79011d1af61419a63cc8ef4645f45bbf</id>
<content type='text'>
The prefix option of the diagnostic virtual text can be a function,
but previously it was only a function of diagnostic.

This function should also have additional parameters index and total,
more consistently and similarily as in the prefix function for
`vim.diagnostic.open_float()`.

These additional parameters will be useful when there are too many
number of diagnostics in a single line.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The prefix option of the diagnostic virtual text can be a function,
but previously it was only a function of diagnostic.

This function should also have additional parameters index and total,
more consistently and similarily as in the prefix function for
`vim.diagnostic.open_float()`.

These additional parameters will be useful when there are too many
number of diagnostics in a single line.</pre>
</div>
</content>
</entry>
<entry>
<title>fix(diagnostic): always return copies of diagnostic items (#25010)</title>
<updated>2023-09-06T17:54:18+00:00</updated>
<author>
<name>Evgeni Chasnovski</name>
<email>evgeni.chasnovski@gmail.com</email>
</author>
<published>2023-09-06T17:54:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=d27214331815324ea5762b5aa22996b9019085c6'/>
<id>d27214331815324ea5762b5aa22996b9019085c6</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): filter diagnostics by specific severities (#24736)</title>
<updated>2023-08-16T13:49:14+00:00</updated>
<author>
<name>Michael Strobel</name>
<email>71396679+Kibadda@users.noreply.github.com</email>
</author>
<published>2023-08-16T13:49:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=e7801775060e2d8f9f20572fac687f438e81caa0'/>
<id>e7801775060e2d8f9f20572fac687f438e81caa0</id>
<content type='text'>
Allow users to filter diagnostics by specifying severities</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Allow users to filter diagnostics by specifying severities</pre>
</div>
</content>
</entry>
<entry>
<title>feat(diagnostic): specify diagnostic virtual text prefix as a function</title>
<updated>2023-04-17T11:53:34+00:00</updated>
<author>
<name>Isak Samsten</name>
<email>isak@samsten.se</email>
</author>
<published>2023-04-17T11:53:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=07b60efd8058bb515998f50048b511d50f9671f8'/>
<id>07b60efd8058bb515998f50048b511d50f9671f8</id>
<content type='text'>
- vim.diagnostic.config() now accepts a function for the virtual_text.prefix
  option, which allows for rendering e.g., diagnostic severities differently.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- vim.diagnostic.config() now accepts a function for the virtual_text.prefix
  option, which allows for rendering e.g., diagnostic severities differently.</pre>
</div>
</content>
</entry>
<entry>
<title>test(lua/diagnostic_spec): remove unnecessary after_each()</title>
<updated>2023-04-07T01:38:52+00:00</updated>
<author>
<name>zeertzjq</name>
<email>zeertzjq@outlook.com</email>
</author>
<published>2023-04-07T01:38:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=b2d10aa01da4cf9341f68969b22875afb4afabd9'/>
<id>b2d10aa01da4cf9341f68969b22875afb4afabd9</id>
<content type='text'>
There is already a call to clear() in before_each(), so after_each() isn't necessary.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
There is already a call to clear() in before_each(), so after_each() isn't necessary.</pre>
</div>
</content>
</entry>
<entry>
<title>feat(diagnostic): add support for tags</title>
<updated>2023-03-30T13:49:58+00:00</updated>
<author>
<name>Lewis Russell</name>
<email>lewis6991@gmail.com</email>
</author>
<published>2023-03-30T13:49:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=226a6c3eaef2a7220841d3d5e69e1baf543b3d6f'/>
<id>226a6c3eaef2a7220841d3d5e69e1baf543b3d6f</id>
<content type='text'>
The LSP spec supports two tags that can be added to diagnostics:
unnecessary and deprecated. Extend vim.diagnostic to be able to handle
these.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The LSP spec supports two tags that can be added to diagnostics:
unnecessary and deprecated. Extend vim.diagnostic to be able to handle
these.
</pre>
</div>
</content>
</entry>
<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>
</feed>
