<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rneovim.git/runtime/lua/vim/diagnostic.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>fix(diagnostic): revert notification on missing diagnostics (#21632)</title>
<updated>2023-01-03T15:20:20+00:00</updated>
<author>
<name>Gregory Anders</name>
<email>8965202+gpanders@users.noreply.github.com</email>
</author>
<published>2023-01-03T15:20:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=5eed3e741b39a7e52888b0400ba63a2ea70f4dac'/>
<id>5eed3e741b39a7e52888b0400ba63a2ea70f4dac</id>
<content type='text'>
This reverts a change introduced in
4ace9e7e417fe26c8b73ff1d6042e6e4f3df9ebf.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts a change introduced in
4ace9e7e417fe26c8b73ff1d6042e6e4f3df9ebf.</pre>
</div>
</content>
</entry>
<entry>
<title>refactor(diagnostic): DRY for loop #21521</title>
<updated>2023-01-03T10:07:27+00:00</updated>
<author>
<name>Raphael</name>
<email>glephunter@gmail.com</email>
</author>
<published>2023-01-03T10:07:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=7b76a3e7992bffca758b2e52548d2f483a45eaf6'/>
<id>7b76a3e7992bffca758b2e52548d2f483a45eaf6</id>
<content type='text'>
Co-authored-by: Justin M. Keyes &lt;justinkz@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Co-authored-by: Justin M. Keyes &lt;justinkz@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>feat(diagnostic): don't open quickfix/loclist if no diagnostics #21397</title>
<updated>2022-12-30T18:23:54+00:00</updated>
<author>
<name>李晓辉</name>
<email>lixiaohui0812@gmail.com</email>
</author>
<published>2022-12-30T18:23:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=4ace9e7e417fe26c8b73ff1d6042e6e4f3df9ebf'/>
<id>4ace9e7e417fe26c8b73ff1d6042e6e4f3df9ebf</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): sort diagnostics by column (#21457)</title>
<updated>2022-12-18T15:17:15+00:00</updated>
<author>
<name>tae-soo-kim</name>
<email>117524309+tae-soo-kim@users.noreply.github.com</email>
</author>
<published>2022-12-18T15:17:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=bf9ad5db962509f3434726b7ad84d31d002fb8a3'/>
<id>bf9ad5db962509f3434726b7ad84d31d002fb8a3</id>
<content type='text'>
Sort diagnostics by column number in quickfix list</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Sort diagnostics by column number in quickfix list</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>docs(gen): support language annotation in docstrings</title>
<updated>2022-12-02T15:05:00+00:00</updated>
<author>
<name>Christian Clason</name>
<email>c.clason@uni-graz.at</email>
</author>
<published>2022-11-23T11:31:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=0b05bd87c04f9cde5c84a062453619349e370795'/>
<id>0b05bd87c04f9cde5c84a062453619349e370795</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): correct type annotations; add Diagnostic type (#21120)</title>
<updated>2022-11-21T21:02:18+00:00</updated>
<author>
<name>Mathias Fußenegger</name>
<email>mfussenegger@users.noreply.github.com</email>
</author>
<published>2022-11-21T21:02:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=904d0056d520ef01e2873bbaa91a4693e8dfd226'/>
<id>904d0056d520ef01e2873bbaa91a4693e8dfd226</id>
<content type='text'>
Some functions didn't include the `nil` case in the return type
annotation. This corrects those and also adds a Diagnostic class
definition for the diagnostic.get return type</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Some functions didn't include the `nil` case in the return type
annotation. This corrects those and also adds a Diagnostic class
definition for the diagnostic.get return type</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>
</feed>
