<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rneovim.git/runtime/lua/vim/lsp/buf.lua, branch newfeatures</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(lsp): update lsp-handler signature in call_hierarchy (#15738)</title>
<updated>2021-09-21T22:05:49+00:00</updated>
<author>
<name>Mathias Fußenegger</name>
<email>mfussenegger@users.noreply.github.com</email>
</author>
<published>2021-09-21T22:05:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=8164adc1441b2150737bb7e30c59de73176d6447'/>
<id>8164adc1441b2150737bb7e30c59de73176d6447</id>
<content type='text'>
This fixes the handler signature and also prevents n+1 requests firing
if there are multiple clients.

(The first `prepareCallHierarchy` handler is called once per client,
each invocation used `buf_request` to make more requests using *all*
clients)</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This fixes the handler signature and also prevents n+1 requests firing
if there are multiple clients.

(The first `prepareCallHierarchy` handler is called once per client,
each invocation used `buf_request` to make more requests using *all*
clients)</pre>
</div>
</content>
</entry>
<entry>
<title>feat(lsp): support textDocument/prepareRename (#15514)</title>
<updated>2021-09-08T15:00:15+00:00</updated>
<author>
<name>Zi How Poh</name>
<email>z@pzpz.dev</email>
</author>
<published>2021-09-08T15:00:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=c1f573fbc94aecd0f5841f7eb671be1a0a29758c'/>
<id>c1f573fbc94aecd0f5841f7eb671be1a0a29758c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>feat(lsp)!: change handler signature</title>
<updated>2021-09-05T17:04:30+00:00</updated>
<author>
<name>Michael Lingelbach</name>
<email>m.j.lbach@gmail.com</email>
</author>
<published>2021-08-28T04:12:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=df17d7844ed7dedcb80f9405f7078a046a12524a'/>
<id>df17d7844ed7dedcb80f9405f7078a046a12524a</id>
<content type='text'>
Previously, the handler signature was:

  function(err, method, params, client_id, bufnr, config)

In order to better support external plugins that wish to extend the
protocol, there is other information which would be advantageous to
forward to the client, such as the original params of the request that
generated the callback.

In order to do this, we would need to break symmetry of the handlers, to
add an additional "params" as the 7th argument.

Instead, this PR changes the signature of the handlers to:

  function(err, result, ctx, config)

where ctx (the context) includes params, client_id, and bufnr. This also leaves
flexibility for future use-cases.

BREAKING_CHANGE: changes the signature of the built-in client handlers, requiring
updating handler calls
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously, the handler signature was:

  function(err, method, params, client_id, bufnr, config)

In order to better support external plugins that wish to extend the
protocol, there is other information which would be advantageous to
forward to the client, such as the original params of the request that
generated the callback.

In order to do this, we would need to break symmetry of the handlers, to
add an additional "params" as the 7th argument.

Instead, this PR changes the signature of the handlers to:

  function(err, result, ctx, config)

where ctx (the context) includes params, client_id, and bufnr. This also leaves
flexibility for future use-cases.

BREAKING_CHANGE: changes the signature of the built-in client handlers, requiring
updating handler calls
</pre>
</div>
</content>
</entry>
<entry>
<title>docs: make Lua docstrings consistent #15255</title>
<updated>2021-08-22T20:55:28+00:00</updated>
<author>
<name>Gregory Anders</name>
<email>greg@gpanders.com</email>
</author>
<published>2021-08-22T20:55:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=c2a211b8e3e00dfae594ccbd9a107aef85a9919c'/>
<id>c2a211b8e3e00dfae594ccbd9a107aef85a9919c</id>
<content type='text'>
The official developer documentation in in :h dev-lua-doc specifies to
use "--@" for special/magic tokens. However, this format is not
consistent with EmmyLua notation (used by some Lua language servers) nor
with the C version of the magic docstring tokens which use three comment
characters.

Further, the code base is currently split between usage of "--@",
"---@", and "--- @". In an effort to remain consistent, change all Lua
magic tokens to use "---@" and update the developer documentation
accordingly.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The official developer documentation in in :h dev-lua-doc specifies to
use "--@" for special/magic tokens. However, this format is not
consistent with EmmyLua notation (used by some Lua language servers) nor
with the C version of the magic docstring tokens which use three comment
characters.

Further, the code base is currently split between usage of "--@",
"---@", and "--- @". In an effort to remain consistent, change all Lua
magic tokens to use "---@" and update the developer documentation
accordingly.</pre>
</div>
</content>
</entry>
<entry>
<title>feat: aggregate code actions from all clients (#15121)</title>
<updated>2021-07-18T08:58:35+00:00</updated>
<author>
<name>Folke Lemaitre</name>
<email>folke.lemaitre@gmail.com</email>
</author>
<published>2021-07-18T08:58:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=c36df20aef22288f47e19084d2671327f7cd878c'/>
<id>c36df20aef22288f47e19084d2671327f7cd878c</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): avoid ipairs on non-sequential tables (#15059)</title>
<updated>2021-07-11T18:34:26+00:00</updated>
<author>
<name>Michael Lingelbach</name>
<email>m.j.lbach@gmail.com</email>
</author>
<published>2021-07-11T18:34:26+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=eece0735fe3b4f70747644ebf5daf7320f441616'/>
<id>eece0735fe3b4f70747644ebf5daf7320f441616</id>
<content type='text'>
ipairs terminates on the first nil index when iterating over table keys:

for i,k in ipairs( {[1] = 'test', [3] = 'test'} ) do
  print(i, k)
end

prints:
1 test

Instead, use pairs which continues iterating over the entire table:

for i,k in pairs( {[1] = 'test', [3] = 'test'} ) do
  print(i, k)
end

prints:
1 test
3 test</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
ipairs terminates on the first nil index when iterating over table keys:

for i,k in ipairs( {[1] = 'test', [3] = 'test'} ) do
  print(i, k)
end

prints:
1 test

Instead, use pairs which continues iterating over the entire table:

for i,k in pairs( {[1] = 'test', [3] = 'test'} ) do
  print(i, k)
end

prints:
1 test
3 test</pre>
</div>
</content>
</entry>
<entry>
<title>fix(lsp): Set `dir` completion option for add_workspace_folder</title>
<updated>2021-06-25T12:28:17+00:00</updated>
<author>
<name>Mathias Fussenegger</name>
<email>f.mathias@zignar.net</email>
</author>
<published>2021-06-25T12:23:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=7ea652e4bf0307c46c1bc47456a94638e17f9f29'/>
<id>7ea652e4bf0307c46c1bc47456a94638e17f9f29</id>
<content type='text'>
Given that the input is pre-filled with a path, it should be possible to
use dir completion.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Given that the input is pre-filled with a path, it should be possible to
use dir completion.
</pre>
</div>
</content>
</entry>
<entry>
<title>fix(lsp): add bufnr to formatting requests</title>
<updated>2021-06-16T06:53:43+00:00</updated>
<author>
<name>Lukas Reineke</name>
<email>lukas.reineke@protonmail.com</email>
</author>
<published>2021-06-16T06:53:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=f76f72a27bb0c60c9e60a5bba30d94fd5541595a'/>
<id>f76f72a27bb0c60c9e60a5bba30d94fd5541595a</id>
<content type='text'>

Add the buffer number to the `textDocument/formatting` request, so
that it is passed to the handler.
The built-in formatting handlers do not use the buffer number, but user
overrides should have access to it.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>

Add the buffer number to the `textDocument/formatting` request, so
that it is passed to the handler.
The built-in formatting handlers do not use the buffer number, but user
overrides should have access to it.</pre>
</div>
</content>
</entry>
<entry>
<title>docs(lsp): annotate call_hierarchy function as private</title>
<updated>2021-06-15T06:19:23+00:00</updated>
<author>
<name>cbarrete</name>
<email>62146989+cbarrete@users.noreply.github.com</email>
</author>
<published>2021-06-15T06:19:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=8cdffd42dd7db664034f61157e59e1e499f70ad8'/>
<id>8cdffd42dd7db664034f61157e59e1e499f70ad8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>lsp: handle unsupported call hierarchy call</title>
<updated>2021-05-19T15:55:03+00:00</updated>
<author>
<name>Cédric Barreteau</name>
<email>cbarrete@users.noreply.github.com</email>
</author>
<published>2021-05-18T21:32:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=ca336c681d263cd52f2aba40a8d0b0646d5a9f3d'/>
<id>ca336c681d263cd52f2aba40a8d0b0646d5a9f3d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
