<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rneovim.git/runtime/lua/vim/lsp/completion.lua, branch rahm</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: 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='http://git.josher.dev/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: 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='http://git.josher.dev/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): 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='http://git.josher.dev/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): 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='http://git.josher.dev/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>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='http://git.josher.dev/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>
<entry>
<title>refactor: add vim._resolve_bufnr</title>
<updated>2024-12-07T16:58:40+00:00</updated>
<author>
<name>Lewis Russell</name>
<email>lewis6991@gmail.com</email>
</author>
<published>2024-12-07T13:05:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=668d2569b4109e7e83c45578c506c1c64dbd5e87'/>
<id>668d2569b4109e7e83c45578c506c1c64dbd5e87</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>refactor(lsp): rename `offset_encoding` to `position_encoding` #31286</title>
<updated>2024-11-25T16:06:05+00:00</updated>
<author>
<name>Yi Ming</name>
<email>ofseed@foxmail.com</email>
</author>
<published>2024-11-25T16:06:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=165b099fa38c5f4a9855cda3d13575bf63767647'/>
<id>165b099fa38c5f4a9855cda3d13575bf63767647</id>
<content type='text'>
Problem:
LSP spec uses the term "position encoding" where we say "offset encoding".

Solution:
- Rename it everywhere except `vim.lsp.Client.offset_encoding` (which would be breaking).
- Mention "position encoding" in the documentation for `vim.lsp.Client.offset_encoding`.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Problem:
LSP spec uses the term "position encoding" where we say "offset encoding".

Solution:
- Rename it everywhere except `vim.lsp.Client.offset_encoding` (which would be breaking).
- Mention "position encoding" in the documentation for `vim.lsp.Client.offset_encoding`.</pre>
</div>
</content>
</entry>
<entry>
<title>feat(lsp): deprecate non-method client functions</title>
<updated>2024-11-20T08:51:45+00:00</updated>
<author>
<name>Lewis Russell</name>
<email>lewis6991@gmail.com</email>
</author>
<published>2024-11-14T11:53:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=454ae672aad172a299dcff7c33c5e61a3b631c90'/>
<id>454ae672aad172a299dcff7c33c5e61a3b631c90</id>
<content type='text'>
Deprecated:
- `client.request()` -&gt; `client:request()`
- `client.request_sync()` -&gt; `client:request_sync()`
- `client.notify()` -&gt; `client:notify()`
- `client.cancel_request()` -&gt; `client:cancel_request()`
- `client.stop()` -&gt; `client:stop()`
- `client.is_stopped()` `client:is_stopped()`
- `client.supports_method()` -&gt; `client:supports_method()`
- `client.on_attach()` -&gt; `client:on_attach()`

Fixed docgen to link class fields to the full function doc.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Deprecated:
- `client.request()` -&gt; `client:request()`
- `client.request_sync()` -&gt; `client:request_sync()`
- `client.notify()` -&gt; `client:notify()`
- `client.cancel_request()` -&gt; `client:cancel_request()`
- `client.stop()` -&gt; `client:stop()`
- `client.is_stopped()` `client:is_stopped()`
- `client.supports_method()` -&gt; `client:supports_method()`
- `client.on_attach()` -&gt; `client:on_attach()`

Fixed docgen to link class fields to the full function doc.
</pre>
</div>
</content>
</entry>
<entry>
<title>fix(lsp): filter completion candidates based on completeopt (#30945)</title>
<updated>2024-11-13T15:18:29+00:00</updated>
<author>
<name>Kristijan Husak</name>
<email>husakkristijan@gmail.com</email>
</author>
<published>2024-11-13T15:18:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=33d10db5b7a7cd03b22e3ba401cb3bc74640f522'/>
<id>33d10db5b7a7cd03b22e3ba401cb3bc74640f522</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>refactor(lsp): drop str_byteindex/str_utfindex wrappers #30915</title>
<updated>2024-10-26T14:38:25+00:00</updated>
<author>
<name>Tristan Knight</name>
<email>admin@snappeh.com</email>
</author>
<published>2024-10-26T14:38:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=25b53b593ef6f229fbec5b3dc205a7539579d13a'/>
<id>25b53b593ef6f229fbec5b3dc205a7539579d13a</id>
<content type='text'>
* deprecate old signatures
* move to new str_byteindex/str_utfindex signature
* use single-underscore name (double-underscore is reserved for Lua itself)</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* deprecate old signatures
* move to new str_byteindex/str_utfindex signature
* use single-underscore name (double-underscore is reserved for Lua itself)</pre>
</div>
</content>
</entry>
</feed>
