<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rneovim.git/runtime/lua/vim/lsp, branch userreg</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: support @since for api level #25574</title>
<updated>2023-11-27T16:23:04+00:00</updated>
<author>
<name>LW</name>
<email>git@llllvvuu.dev</email>
</author>
<published>2023-11-27T16:23:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=9fa9b3cad94a1ea7fced128fed2cd5ac3ff7bc44'/>
<id>9fa9b3cad94a1ea7fced128fed2cd5ac3ff7bc44</id>
<content type='text'>
close #25416</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
close #25416</pre>
</div>
</content>
</entry>
<entry>
<title>refactor(lsp): add type annotations to _watchfiles (#26109)</title>
<updated>2023-11-20T16:19:41+00:00</updated>
<author>
<name>Mathias Fußenegger</name>
<email>mfussenegger@users.noreply.github.com</email>
</author>
<published>2023-11-20T16:19:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=ec79ff893d5906e1f0d90953cffa535ffae47823'/>
<id>ec79ff893d5906e1f0d90953cffa535ffae47823</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): advertise workspace.didChangeConfiguration capability (#26028)</title>
<updated>2023-11-13T18:39:43+00:00</updated>
<author>
<name>Chris Simon</name>
<email>chris@devcycles.io</email>
</author>
<published>2023-11-13T18:39:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=48bcc7b9710d6db619b05254ea87f4087cdd9764'/>
<id>48bcc7b9710d6db619b05254ea87f4087cdd9764</id>
<content type='text'>
This ensures workspace/didChangeConfiguration notification sent after init is correctly handled
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This ensures workspace/didChangeConfiguration notification sent after init is correctly handled
</pre>
</div>
</content>
</entry>
<entry>
<title>feat(lsp)!: vim.lsp.inlay_hint.get(), enable(), is_enabled() #25512</title>
<updated>2023-11-12T12:54:27+00:00</updated>
<author>
<name>LW</name>
<email>git@llllvvuu.dev</email>
</author>
<published>2023-11-12T12:54:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=448907f65d6709fa234d8366053e33311a01bdb9'/>
<id>448907f65d6709fa234d8366053e33311a01bdb9</id>
<content type='text'>
refactor!: `vim.lsp.inlay_hint()` -&gt; `vim.lsp.inlay_hint.enable()`

Problem:
The LSP specification allows inlay hints to include tooltips, clickable
label parts, and code actions; but Neovim provides no API to query for
these.

Solution:
Add minimal viable extension point from which plugins can query for
inlay hints in a range, in order to build functionality on top of.

Possible Next Steps
---

- Add `virt_text_idx` field to `vim.fn.getmousepos()` return value, for
  usage in mappings of `&lt;LeftMouse&gt;`, `&lt;C-LeftMouse&gt;`, etc</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
refactor!: `vim.lsp.inlay_hint()` -&gt; `vim.lsp.inlay_hint.enable()`

Problem:
The LSP specification allows inlay hints to include tooltips, clickable
label parts, and code actions; but Neovim provides no API to query for
these.

Solution:
Add minimal viable extension point from which plugins can query for
inlay hints in a range, in order to build functionality on top of.

Possible Next Steps
---

- Add `virt_text_idx` field to `vim.fn.getmousepos()` return value, for
  usage in mappings of `&lt;LeftMouse&gt;`, `&lt;C-LeftMouse&gt;`, etc</pre>
</div>
</content>
</entry>
<entry>
<title>fix(lsp): create per client params in lsp.buf.code_action</title>
<updated>2023-11-04T07:17:42+00:00</updated>
<author>
<name>Mathias Fussenegger</name>
<email>f.mathias@zignar.net</email>
</author>
<published>2023-11-02T08:59:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=9281edb334a374e7753d4a6b7a05e31120e39772'/>
<id>9281edb334a374e7753d4a6b7a05e31120e39772</id>
<content type='text'>
`code_action` used the same parameters for all clients, which led to the
following warning and incorrect start/end column locations if using
clients with mixed encodings:

    warning: multiple different client offset_encodings detected for
    buffer, this is not supported yet
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
`code_action` used the same parameters for all clients, which led to the
following warning and incorrect start/end column locations if using
clients with mixed encodings:

    warning: multiple different client offset_encodings detected for
    buffer, this is not supported yet
</pre>
</div>
</content>
</entry>
<entry>
<title>fix(lsp): call `on_list()` even for single location (#25830)</title>
<updated>2023-10-31T12:18:44+00:00</updated>
<author>
<name>Evgeni Chasnovski</name>
<email>evgeni.chasnovski@gmail.com</email>
</author>
<published>2023-10-31T12:18:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=adbe7f368397da21465f27181e254dd3694820e9'/>
<id>adbe7f368397da21465f27181e254dd3694820e9</id>
<content type='text'>
Problem: Currently there is no way of customizing behavior of
  `declaration`, `definition`, `typeDefinition`, and `implementation`
  methods in `vim.lsp.buf` when LSP server returns `Location`. Instead,
  cursor jumps to that location directly.

Solution: Normalize LSP response to be `Location[]` for those four cases.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Problem: Currently there is no way of customizing behavior of
  `declaration`, `definition`, `typeDefinition`, and `implementation`
  methods in `vim.lsp.buf` when LSP server returns `Location`. Instead,
  cursor jumps to that location directly.

Solution: Normalize LSP response to be `Location[]` for those four cases.</pre>
</div>
</content>
</entry>
<entry>
<title>fix(lsp): fix omnicomplete in middle of the line (#25787)</title>
<updated>2023-10-26T20:40:36+00:00</updated>
<author>
<name>Lajos Koszti</name>
<email>ajnasz@ajnasz.hu</email>
</author>
<published>2023-10-26T20:40:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=ba6761eafe615a7f904c585dba3b7d6e98f665e1'/>
<id>ba6761eafe615a7f904c585dba3b7d6e98f665e1</id>
<content type='text'>
Fixes a regression from 5e5f5174e3faa862a9bc353aa7da41487911140b

Until that commit we had a logic like this:
`local prefix = startbyte and line:sub(startbyte + 1) or line_to_cursor:sub(word_boundary)`

The commit changed the logic and no longer cut off the line at the cursor,  resulting in a prefix that included trailing characters</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes a regression from 5e5f5174e3faa862a9bc353aa7da41487911140b

Until that commit we had a logic like this:
`local prefix = startbyte and line:sub(startbyte + 1) or line_to_cursor:sub(word_boundary)`

The commit changed the logic and no longer cut off the line at the cursor,  resulting in a prefix that included trailing characters</pre>
</div>
</content>
</entry>
<entry>
<title>fix(lsp): fix off-by-one error for omnifunc word boundary</title>
<updated>2023-10-23T06:26:38+00:00</updated>
<author>
<name>Mathias Fussenegger</name>
<email>f.mathias@zignar.net</email>
</author>
<published>2023-10-21T11:44:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=5e5f5174e3faa862a9bc353aa7da41487911140b'/>
<id>5e5f5174e3faa862a9bc353aa7da41487911140b</id>
<content type='text'>
Fixes https://github.com/neovim/neovim/issues/25177

I initially wanted to split this into a refactor commit to make it more
testable, but it appears that already accidentally fixed the issue by
normalizing lnum/col to 0-indexing
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes https://github.com/neovim/neovim/issues/25177

I initially wanted to split this into a refactor commit to make it more
testable, but it appears that already accidentally fixed the issue by
normalizing lnum/col to 0-indexing
</pre>
</div>
</content>
</entry>
<entry>
<title>refactor(lsp): deprecate completion util methods</title>
<updated>2023-10-21T11:49:05+00:00</updated>
<author>
<name>Mathias Fussenegger</name>
<email>f.mathias@zignar.net</email>
</author>
<published>2023-10-21T07:57:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=195301c60969c7ce97b1ef3a3caaf4965da1abd5'/>
<id>195301c60969c7ce97b1ef3a3caaf4965da1abd5</id>
<content type='text'>
Relates to https://github.com/neovim/neovim/issues/25272
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Relates to https://github.com/neovim/neovim/issues/25272
</pre>
</div>
</content>
</entry>
<entry>
<title>refactor(lsp): move completion logic into _completion module</title>
<updated>2023-10-21T11:49:05+00:00</updated>
<author>
<name>Mathias Fussenegger</name>
<email>f.mathias@zignar.net</email>
</author>
<published>2023-10-21T07:47:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=1e10310f4cc70cf95a68457c2be9e7459b5bbba6'/>
<id>1e10310f4cc70cf95a68457c2be9e7459b5bbba6</id>
<content type='text'>
To reduce cross-chatter between modules and for https://github.com/neovim/neovim/issues/25272
Also preparing for https://github.com/neovim/neovim/issues/25714
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
To reduce cross-chatter between modules and for https://github.com/neovim/neovim/issues/25272
Also preparing for https://github.com/neovim/neovim/issues/25714
</pre>
</div>
</content>
</entry>
</feed>
