<feed xmlns='http://www.w3.org/2005/Atom'>
<title>neovim/runtime/lua/vim/lsp/util.lua, branch dependabot/github_actions/github-actions-c6747d2992</title>
<subtitle>Vim-fork focused on extensibility and usability</subtitle>
<id>http://git.waynecole.info/neovim/atom?h=dependabot%2Fgithub_actions%2Fgithub-actions-c6747d2992</id>
<link rel='self' href='http://git.waynecole.info/neovim/atom?h=dependabot%2Fgithub_actions%2Fgithub-actions-c6747d2992'/>
<link rel='alternate' type='text/html' href='http://git.waynecole.info/neovim/'/>
<updated>2026-04-23T16:01:44Z</updated>
<entry>
<title>fix(lsp): malformed edit if apply_text_edits() is called twice #34954</title>
<updated>2026-04-23T16:01:44Z</updated>
<author>
<name>geril07</name>
<email>62308020+geril07@users.noreply.github.com</email>
</author>
<published>2026-04-23T16:01:44Z</published>
<link rel='alternate' type='text/html' href='http://git.waynecole.info/neovim/commit/?id=790a8be5f306a28ca8e96c2ae3fa3b465ae3718f'/>
<id>urn:sha1:790a8be5f306a28ca8e96c2ae3fa3b465ae3718f</id>
<content type='text'>
Problem:
Use vim.lsp.util.apply_text_edits to re-apply the same textedit causes
an incorrect edit, because apply_text_edits silently modifies the
parameter.

Solution:
- Avoid changing `text_edit._index`.
- Document this fun feature.

Helped-by: Riley Bruins &lt;ribru17@hotmail.com&gt;
Helped-by: Yi Ming &lt;ofseed@foxmail.com&gt;
Co-authored-by: Justin M. Keyes &lt;justinkz@gmail.com&gt;</content>
</entry>
<entry>
<title>fix(lsp): set 'winfixbuf' in open_floating_preview() window #39058</title>
<updated>2026-04-15T21:14:35Z</updated>
<author>
<name>Raizento</name>
<email>51487469+Raizento@users.noreply.github.com</email>
</author>
<published>2026-04-15T21:14:35Z</published>
<link rel='alternate' type='text/html' href='http://git.waynecole.info/neovim/commit/?id=d2fff0590a45e1ec2a23f3a091af4807b5cf08fd'/>
<id>urn:sha1:d2fff0590a45e1ec2a23f3a091af4807b5cf08fd</id>
<content type='text'>
Problem:
The window opened by `vim.lsp.util.open_floating_preview()`
allows its buffer to be switched. Presumably that only happens
by accident and is disorienting.

Solution:
Set 'winfixbuf' in the open_floating_preview() window.</content>
</entry>
<entry>
<title>refactor(api): rename "window" to "win" (positional parameters) #39083</title>
<updated>2026-04-15T17:31:17Z</updated>
<author>
<name>Justin M. Keyes</name>
<email>justinkz@gmail.com</email>
</author>
<published>2026-04-15T17:31:17Z</published>
<link rel='alternate' type='text/html' href='http://git.waynecole.info/neovim/commit/?id=71ac4db335e00b03b27d2c4aa5ab90c083a3a3e7'/>
<id>urn:sha1:71ac4db335e00b03b27d2c4aa5ab90c083a3a3e7</id>
<content type='text'>
continues d0af4cd9094f.

This commit renames positional parameters. This is only "cosmetic", but
is intended to make it extra clear which name is preferred, since people
often copy existing code despite the guidelines in `:help dev-naming`.</content>
</entry>
<entry>
<title>docs: lsp, options, api #38980</title>
<updated>2026-04-14T10:09:54Z</updated>
<author>
<name>Justin M. Keyes</name>
<email>justinkz@gmail.com</email>
</author>
<published>2026-04-14T10:09:54Z</published>
<link rel='alternate' type='text/html' href='http://git.waynecole.info/neovim/commit/?id=d77808ec59be2428f03fc43489ec70dcb71ac572'/>
<id>urn:sha1:d77808ec59be2428f03fc43489ec70dcb71ac572</id>
<content type='text'>
docs: lsp, options

- revert bogus change to `_meta/builtin_types.lua` from 3a4a66017b74

Close #38991

Co-authored-by: David Mejorado &lt;david.mejorado@gmail.com&gt;</content>
</entry>
<entry>
<title>fix(lsp): show_document can't position cursor past EOL in insert-mode #38566</title>
<updated>2026-04-12T15:46:24Z</updated>
<author>
<name>Lars Debor</name>
<email>23101388+1DIce@users.noreply.github.com</email>
</author>
<published>2026-04-12T15:46:24Z</published>
<link rel='alternate' type='text/html' href='http://git.waynecole.info/neovim/commit/?id=891bb0e6ce513dc885cebe995918e5db4e69174a'/>
<id>urn:sha1:891bb0e6ce513dc885cebe995918e5db4e69174a</id>
<content type='text'>
Problem: vim.lsp.util.show_document insert mode is unable
to set the cursor after the target character position if the target character
is at end of line.

Solution: Move cursor after the target character (in append position)
in this case.</content>
</entry>
<entry>
<title>feat(api): rename buffer to buf #35330</title>
<updated>2026-04-09T00:34:47Z</updated>
<author>
<name>Jordan</name>
<email>46637683+JordanllHarper@users.noreply.github.com</email>
</author>
<published>2026-04-09T00:34:47Z</published>
<link rel='alternate' type='text/html' href='http://git.waynecole.info/neovim/commit/?id=3a4a66017b74192caaf9af9af172bdc08e0c1608'/>
<id>urn:sha1:3a4a66017b74192caaf9af9af172bdc08e0c1608</id>
<content type='text'>
Problem:
`:help dev-name-common` states that "buf" should be used instead of
"buffer" but there are cases where buffer is mentioned in the lua API.

Solution:
- Rename occurrences of "buffer" to "buf" for consistency with the
  documentation.
- Support (but deprecate) "buffer" for backwards compatibility.

Co-authored-by: Justin M. Keyes &lt;justinkz@gmail.com&gt;</content>
</entry>
<entry>
<title>fix(lsp): apply_text_edits causes unwanted BufDelete events #38778</title>
<updated>2026-04-08T21:10:52Z</updated>
<author>
<name>glepnir</name>
<email>glephunter@gmail.com</email>
</author>
<published>2026-04-08T21:10:52Z</published>
<link rel='alternate' type='text/html' href='http://git.waynecole.info/neovim/commit/?id=6473d007e7b9f7f14b06190117f0bb0269fa938c'/>
<id>urn:sha1:6473d007e7b9f7f14b06190117f0bb0269fa938c</id>
<content type='text'>
Problem:
Since 2f6d1d3c887a87d9402137425b418dd12a904aac, `apply_text_edits`
unconditionally sets `buflisted=true`, causing spurious BufDelete events
if plugins restore the original 'buflisted' state on unlisted buffers:
https://github.com/neovim/neovim/blob/65ef6cec1cb766334c59d3255595dfe523b11020/src/nvim/option.c#L2159-L2169

Solution:
- Don't set 'buflisted' in `apply_text_edits`. Set it more narrowly, in
  `apply_workspace_edit` where the semantics requires affected buffers
  to be visible to the user.
- Also skip setting 'buflisted' if it would not be changed, to avoid
  redundant `OptionSet` events.</content>
</entry>
<entry>
<title>refactor: integer functions, optimize asserts #34112</title>
<updated>2026-03-12T15:04:05Z</updated>
<author>
<name>Lewis Russell</name>
<email>lewis6991@gmail.com</email>
</author>
<published>2026-03-12T15:04:05Z</published>
<link rel='alternate' type='text/html' href='http://git.waynecole.info/neovim/commit/?id=ce1154048b11cdc402d0e5da352a3adca19afb56'/>
<id>urn:sha1:ce1154048b11cdc402d0e5da352a3adca19afb56</id>
<content type='text'>
refactor(lua): add integer coercion helpers

Add vim._tointeger() and vim._ensure_integer(), including optional base
support, and switch integer-only tonumber()/assert call sites in the Lua
runtime to use them.

This also cleans up related integer parsing in LSP, health, loader, URI,
tohtml, and Treesitter code.

supported by AI</content>
</entry>
<entry>
<title>fix(lsp): set concealcursor='' in LSP floating windows #36596</title>
<updated>2025-11-18T01:49:14Z</updated>
<author>
<name>skewb1k</name>
<email>skewb1kunix@gmail.com</email>
</author>
<published>2025-11-18T01:49:14Z</published>
<link rel='alternate' type='text/html' href='http://git.waynecole.info/neovim/commit/?id=4b8980949cd47f8206b2fbc266dfeb0920fd1191'/>
<id>urn:sha1:4b8980949cd47f8206b2fbc266dfeb0920fd1191</id>
<content type='text'>
Problem:
Users often jump and navigate through LSP windows to yank text.
Concealed markdown can make navigation through hyperlinks and code
blocks more difficult.

Solution:
Change 'concealcursor' from 'n' to '' to preserve clean display
while improving navigation and selection of the LSP response.

Closes #36537</content>
</entry>
<entry>
<title>fix(lsp): set 'linebreak' in floating windows (#36275)</title>
<updated>2025-10-22T17:38:47Z</updated>
<author>
<name>Fredrik Lanker</name>
<email>fredrik@lanker.se</email>
</author>
<published>2025-10-22T17:38:47Z</published>
<link rel='alternate' type='text/html' href='http://git.waynecole.info/neovim/commit/?id=323d5527eed6a7c75e795570431a3292b92c1148'/>
<id>urn:sha1:323d5527eed6a7c75e795570431a3292b92c1148</id>
<content type='text'>
Set linebreak to avoid splitting words.

Fix #36268</content>
</entry>
</feed>
