<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rneovim.git/runtime/lua/vim/lsp, branch rahm</title>
<subtitle>Neovim fork with Rahm's personal hacks.
</subtitle>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/'/>
<entry>
<title>docs: misc</title>
<updated>2025-01-30T12:46:06+00:00</updated>
<author>
<name>dundargoc</name>
<email>gocdundar@gmail.com</email>
</author>
<published>2025-01-13T14:48:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=e71d2c817d1a2475551f58a98e411f6b39a5be3f'/>
<id>e71d2c817d1a2475551f58a98e411f6b39a5be3f</id>
<content type='text'>
Co-authored-by: Dustin S. &lt;dstackmasta27@gmail.com&gt;
Co-authored-by: Ferenc Fejes &lt;fejes@inf.elte.hu&gt;
Co-authored-by: Maria José Solano &lt;majosolano99@gmail.com&gt;
Co-authored-by: Yochem van Rosmalen &lt;git@yochem.nl&gt;
Co-authored-by: brianhuster &lt;phambinhanctb2004@gmail.com&gt;
Co-authored-by: zeertzjq &lt;zeertzjq@outlook.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Co-authored-by: Dustin S. &lt;dstackmasta27@gmail.com&gt;
Co-authored-by: Ferenc Fejes &lt;fejes@inf.elte.hu&gt;
Co-authored-by: Maria José Solano &lt;majosolano99@gmail.com&gt;
Co-authored-by: Yochem van Rosmalen &lt;git@yochem.nl&gt;
Co-authored-by: brianhuster &lt;phambinhanctb2004@gmail.com&gt;
Co-authored-by: zeertzjq &lt;zeertzjq@outlook.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>fix: resolve all remaining LuaLS diagnostics</title>
<updated>2025-01-27T16:37:50+00:00</updated>
<author>
<name>Lewis Russell</name>
<email>lewis6991@gmail.com</email>
</author>
<published>2025-01-24T13:01:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=6aa42e8f92bd8bea49b7b2accfe4ab67a5344e41'/>
<id>6aa42e8f92bd8bea49b7b2accfe4ab67a5344e41</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fix(lsp): prefer `on_list` over `loclist` in default handler</title>
<updated>2025-01-23T16:04:23+00:00</updated>
<author>
<name>Evgeni Chasnovski</name>
<email>evgeni.chasnovski@gmail.com</email>
</author>
<published>2025-01-23T08:42:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=a450fda4ededdd93e3dc571d82a6737f6b9d50d9'/>
<id>a450fda4ededdd93e3dc571d82a6737f6b9d50d9</id>
<content type='text'>
Problem: setting `loclist = true` makes `on_list` being ignored. This
  was not a problem before, but with `vim.lsp.buf.document_symbol` using
  `loclist = true` as default it is needed to explicitly pass `loclist =
  false` in order to use custom `on_list`.

Solution: prefer `on_list` over `loclist` and document the latter as
  taking effect only in the default handler.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Problem: setting `loclist = true` makes `on_list` being ignored. This
  was not a problem before, but with `vim.lsp.buf.document_symbol` using
  `loclist = true` as default it is needed to explicitly pass `loclist =
  false` in order to use custom `on_list`.

Solution: prefer `on_list` over `loclist` and document the latter as
  taking effect only in the default handler.
</pre>
</div>
</content>
</entry>
<entry>
<title>fix: completion.enable(false,...) deletes invalid augroup #32121</title>
<updated>2025-01-20T14:10:00+00:00</updated>
<author>
<name>Konrad Malik</name>
<email>konrad.malik@gmail.com</email>
</author>
<published>2025-01-20T14:10:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=ded15ca8c210965442d39ab214d4838b80a3fdc6'/>
<id>ded15ca8c210965442d39ab214d4838b80a3fdc6</id>
<content type='text'>
Problem:

    vim.lsp.completion.enable(true, client.id, bufnr)
    vim.lsp.completion.enable(false, client.id, bufnr)

    Error detected while processing LspDetach Autocommands for "*":
    Error executing lua callback: …/lsp/completion.lua:701: Vim:E367: No such group: "vim/lsp/completion-22"
    stack traceback:
            [C]: in function 'nvim_del_augroup_by_name'
            …/lsp/completion.lua:701: in function 'disable_completions'
            …/lsp/completion.lua:724: in function 'enable'

Solution:
Delete the correct augroup.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Problem:

    vim.lsp.completion.enable(true, client.id, bufnr)
    vim.lsp.completion.enable(false, client.id, bufnr)

    Error detected while processing LspDetach Autocommands for "*":
    Error executing lua callback: …/lsp/completion.lua:701: Vim:E367: No such group: "vim/lsp/completion-22"
    stack traceback:
            [C]: in function 'nvim_del_augroup_by_name'
            …/lsp/completion.lua:701: in function 'disable_completions'
            …/lsp/completion.lua:724: in function 'enable'

Solution:
Delete the correct augroup.</pre>
</div>
</content>
</entry>
<entry>
<title>fix(lsp): set floating window filetype after setup #32112</title>
<updated>2025-01-20T13:00:13+00:00</updated>
<author>
<name>Guilherme Soares</name>
<email>48023091+guilhas07@users.noreply.github.com</email>
</author>
<published>2025-01-20T13:00:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=8a236c242a76825a6a9266feda45794c7328c807'/>
<id>8a236c242a76825a6a9266feda45794c7328c807</id>
<content type='text'>
Problem:
The filetype for the floating window buffer is being set before its context is fully initialized.
This results in `FileType` events not receiving the correct context.

Solution:
Set the filetype after the floating preview window and its buffer variables are
fully configured to ensure proper context is provided.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Problem:
The filetype for the floating window buffer is being set before its context is fully initialized.
This results in `FileType` events not receiving the correct context.

Solution:
Set the filetype after the floating preview window and its buffer variables are
fully configured to ensure proper context is provided.</pre>
</div>
</content>
</entry>
<entry>
<title>fix(lsp): don't use completion filterText if prefix is empty</title>
<updated>2025-01-19T21:11:20+00:00</updated>
<author>
<name>Mathias Fussenegger</name>
<email>f.mathias@zignar.net</email>
</author>
<published>2025-01-19T20:49:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=5f527f24f0ea89e9071e065530cbed449507df5c'/>
<id>5f527f24f0ea89e9071e065530cbed449507df5c</id>
<content type='text'>
Follow up to https://github.com/neovim/neovim/pull/32072

If there is no prefix (e.g. at the start of word boundary or a line), it
always used the `filterText` because the `match` function always
returned false.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Follow up to https://github.com/neovim/neovim/pull/32072

If there is no prefix (e.g. at the start of word boundary or a line), it
always used the `filterText` because the `match` function always
returned false.
</pre>
</div>
</content>
</entry>
<entry>
<title>fix(lsp): document_symbol uses loclist by default #32070</title>
<updated>2025-01-19T21:08:10+00:00</updated>
<author>
<name>Yochem van Rosmalen</name>
<email>git@yochem.nl</email>
</author>
<published>2025-01-19T21:08:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=d56ba71af11c9048c9085e4f66a47947770bdb29'/>
<id>d56ba71af11c9048c9085e4f66a47947770bdb29</id>
<content type='text'>
Problem: Not able to open document symbols for different buffers

Solution: Use the location list as default.

To switch back to previous behavior (qflist):

  vim.lsp.buf.document_symbol({ loclist = false })

Fixes: #31832</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Problem: Not able to open document symbols for different buffers

Solution: Use the location list as default.

To switch back to previous behavior (qflist):

  vim.lsp.buf.document_symbol({ loclist = false })

Fixes: #31832</pre>
</div>
</content>
</entry>
<entry>
<title>fix(lsp): use filterText as word if textEdit/label doesn't match</title>
<updated>2025-01-17T17:34:58+00:00</updated>
<author>
<name>Mathias Fussenegger</name>
<email>f.mathias@zignar.net</email>
</author>
<published>2025-01-17T14:27:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=b9e6fa7ec81c463d77cc919392b52f6df2d8d304'/>
<id>b9e6fa7ec81c463d77cc919392b52f6df2d8d304</id>
<content type='text'>
Problem:

With language servers like lemminx, completing xml tags like `&lt;mo` first
shows the right candidates (`modules`) but after typing `d` the
candidates disappear.

This is because the server returns:

    [...]
    filterText = "&lt;module",
    label = "module",
    textEdit = {
      newText = "&lt;module&gt;$1&lt;/module&gt;$0",

Which resulted in `module` being used as `word`, and `module` doesn't
match the prefix `&lt;mo`. Typing `d` causes the `complete()` filtering
mechanism to kick in and remove the entry.

Solution:

Use `&lt;module` from the `filterText` as `word` if the textEdit/label
heuristic doesn't match.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Problem:

With language servers like lemminx, completing xml tags like `&lt;mo` first
shows the right candidates (`modules`) but after typing `d` the
candidates disappear.

This is because the server returns:

    [...]
    filterText = "&lt;module",
    label = "module",
    textEdit = {
      newText = "&lt;module&gt;$1&lt;/module&gt;$0",

Which resulted in `module` being used as `word`, and `module` doesn't
match the prefix `&lt;mo`. Typing `d` causes the `complete()` filtering
mechanism to kick in and remove the entry.

Solution:

Use `&lt;module` from the `filterText` as `word` if the textEdit/label
heuristic doesn't match.
</pre>
</div>
</content>
</entry>
<entry>
<title>fix(messages): lsp window/showMessage is not an error</title>
<updated>2025-01-17T07:40:50+00:00</updated>
<author>
<name>Luuk van Baal</name>
<email>luukvbaal@gmail.com</email>
</author>
<published>2025-01-16T07:47:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=7ce27381fb49ac7d6ef1e115c3952f998e979b15'/>
<id>7ce27381fb49ac7d6ef1e115c3952f998e979b15</id>
<content type='text'>
Ref https://github.com/neovim/neovim/discussions/32015
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Ref https://github.com/neovim/neovim/discussions/32015
</pre>
</div>
</content>
</entry>
<entry>
<title>refactor: use nvim.foo.bar format for autocommand groups</title>
<updated>2025-01-15T05:25:25+00:00</updated>
<author>
<name>Maria José Solano</name>
<email>majosolano99@gmail.com</email>
</author>
<published>2025-01-14T03:45:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=09e01437c968be4c6e9f6bb3ac8811108c58008c'/>
<id>09e01437c968be4c6e9f6bb3ac8811108c58008c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
