<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rneovim.git/runtime/lua/vim/lsp/buf.lua, branch tmp</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>docs(lsp): rename on-list-handler to lsp-on-list-handler (#19813)</title>
<updated>2022-08-17T10:39:38+00:00</updated>
<author>
<name>Jonas Strittmatter</name>
<email>40792180+smjonas@users.noreply.github.com</email>
</author>
<published>2022-08-17T10:39:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=7a076306e4e35371160d1a5d09c92744b8461b57'/>
<id>7a076306e4e35371160d1a5d09c92744b8461b57</id>
<content type='text'>
This makes it easier to find documentation about the on-list-handler
when starting the search term with "lsp".</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This makes it easier to find documentation about the on-list-handler
when starting the search term with "lsp".</pre>
</div>
</content>
</entry>
<entry>
<title>docs(lsp): use direct link to formattingOptions in format docs (#19558)</title>
<updated>2022-07-28T17:41:30+00:00</updated>
<author>
<name>Mathias Fußenegger</name>
<email>mfussenegger@users.noreply.github.com</email>
</author>
<published>2022-07-28T17:41:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=b25abbf4b8a08899bba87809124c882928d99e21'/>
<id>b25abbf4b8a08899bba87809124c882928d99e21</id>
<content type='text'>
Also changes `@see` to `See` to avoid the break to a dedicated "See
also" block in the generated vimdoc</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Also changes `@see` to `See` to avoid the break to a dedicated "See
also" block in the generated vimdoc</pre>
</div>
</content>
</entry>
<entry>
<title>feat(lsp): add range option to code_action; deprecate range_code_action (#19551)</title>
<updated>2022-07-28T17:19:07+00:00</updated>
<author>
<name>Mathias Fußenegger</name>
<email>mfussenegger@users.noreply.github.com</email>
</author>
<published>2022-07-28T17:19:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=98915f88b2d4b0e7f2ca643cd4648316ec9cddb8'/>
<id>98915f88b2d4b0e7f2ca643cd4648316ec9cddb8</id>
<content type='text'>
`code_action` gained extra functions (`filter` and `apply`) which
`range_code_action` didn't have.

To close this gap, this adds a `range` option to `code_action` and
deprecates `range_code_action`.

The option defaults to the current selection if in visual mode.
This allows users to setup a mapping like `vim.keymap.set({'v', 'n'},
'&lt;a-CR&gt;', vim.lsp.buf.code_action)`

`range_code_action` used to use the `&lt;` and `&gt;` markers to get the
_last_ selection which required using a `&lt;Esc&gt;&lt;Cmd&gt;lua
vim.lsp.buf.range_code_action()&lt;CR&gt;` (note the `&lt;ESC&gt;`) mapping.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
`code_action` gained extra functions (`filter` and `apply`) which
`range_code_action` didn't have.

To close this gap, this adds a `range` option to `code_action` and
deprecates `range_code_action`.

The option defaults to the current selection if in visual mode.
This allows users to setup a mapping like `vim.keymap.set({'v', 'n'},
'&lt;a-CR&gt;', vim.lsp.buf.code_action)`

`range_code_action` used to use the `&lt;` and `&gt;` markers to get the
_last_ selection which required using a `&lt;Esc&gt;&lt;Cmd&gt;lua
vim.lsp.buf.range_code_action()&lt;CR&gt;` (note the `&lt;ESC&gt;`) mapping.</pre>
</div>
</content>
</entry>
<entry>
<title>feat(lsp): allow passing custom list handler to LSP functions that return lists (#19213)</title>
<updated>2022-07-25T21:02:51+00:00</updated>
<author>
<name>Dalius Dobravolskas</name>
<email>daliusd@wix.com</email>
</author>
<published>2022-07-25T21:02:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=3ded2ab55a1d894234163f82ced026e1423c9915'/>
<id>3ded2ab55a1d894234163f82ced026e1423c9915</id>
<content type='text'>
Currently LSP allows only using loclist or quickfix list window. I
normally prefer to review all quickfix items without opening quickfix
window. This fix allows passing `on_list` option which allows full
control what to do with list.

Here is example how to use it with quick fix list:

```lua
local function on_list(options)
  vim.fn.setqflist({}, ' ', options)
  vim.api.nvim_command('cfirst')
end

local bufopts = { noremap=true, silent=true, buffer=bufnr }
vim.keymap.set('n', '&lt;leader&gt;ad', function() vim.lsp.buf.declaration{on_list=on_list} end, bufopts)
vim.keymap.set('n', '&lt;leader&gt;d', function() vim.lsp.buf.definition{on_list=on_list} end, bufopts)
vim.keymap.set('n', '&lt;leader&gt;ai', function() vim.lsp.buf.implementation{on_list=on_list} end, bufopts)
vim.keymap.set('n', '&lt;leader&gt;at', function() vim.lsp.buf.type_definition{on_list=on_list} end, bufopts)
vim.keymap.set('n', '&lt;leader&gt;af', function() vim.lsp.buf.references(nil, {on_list=on_list}) end, bufopts)
```

If you prefer loclist do something like this:

```lua
local function on_list(options)
  vim.fn.setloclist(0, {}, ' ', options)
  vim.api.nvim_command('lopen')
end
```

close #19182

Co-authored-by: Mathias Fußenegger &lt;mfussenegger@users.noreply.github.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Currently LSP allows only using loclist or quickfix list window. I
normally prefer to review all quickfix items without opening quickfix
window. This fix allows passing `on_list` option which allows full
control what to do with list.

Here is example how to use it with quick fix list:

```lua
local function on_list(options)
  vim.fn.setqflist({}, ' ', options)
  vim.api.nvim_command('cfirst')
end

local bufopts = { noremap=true, silent=true, buffer=bufnr }
vim.keymap.set('n', '&lt;leader&gt;ad', function() vim.lsp.buf.declaration{on_list=on_list} end, bufopts)
vim.keymap.set('n', '&lt;leader&gt;d', function() vim.lsp.buf.definition{on_list=on_list} end, bufopts)
vim.keymap.set('n', '&lt;leader&gt;ai', function() vim.lsp.buf.implementation{on_list=on_list} end, bufopts)
vim.keymap.set('n', '&lt;leader&gt;at', function() vim.lsp.buf.type_definition{on_list=on_list} end, bufopts)
vim.keymap.set('n', '&lt;leader&gt;af', function() vim.lsp.buf.references(nil, {on_list=on_list}) end, bufopts)
```

If you prefer loclist do something like this:

```lua
local function on_list(options)
  vim.fn.setloclist(0, {}, ' ', options)
  vim.api.nvim_command('lopen')
end
```

close #19182

Co-authored-by: Mathias Fußenegger &lt;mfussenegger@users.noreply.github.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>refactor: use `local api = vim.api`</title>
<updated>2022-07-15T16:26:47+00:00</updated>
<author>
<name>ii14</name>
<email>ii14@users.noreply.github.com</email>
</author>
<published>2022-07-15T16:26:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=f59c96903a61702c69a5bf23a7adb09fff435331'/>
<id>f59c96903a61702c69a5bf23a7adb09fff435331</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>refactor: use npcall from vim.F</title>
<updated>2022-07-15T15:55:00+00:00</updated>
<author>
<name>ii14</name>
<email>ii14@users.noreply.github.com</email>
</author>
<published>2022-07-15T15:55:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=8bccefcb87ec1beb91fc42e4646201917d85baf7'/>
<id>8bccefcb87ec1beb91fc42e4646201917d85baf7</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): make the use of local aliases more consistent</title>
<updated>2022-07-15T15:39:26+00:00</updated>
<author>
<name>ii14</name>
<email>ii14@users.noreply.github.com</email>
</author>
<published>2022-07-09T23:57:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=8a5c7e91f21b9f49c5443105e694056a65bf761e'/>
<id>8a5c7e91f21b9f49c5443105e694056a65bf761e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>refactor(lua): reformat with stylua 0.14.0 (#19264)</title>
<updated>2022-07-07T16:27:18+00:00</updated>
<author>
<name>Christian Clason</name>
<email>c.clason@uni-graz.at</email>
</author>
<published>2022-07-07T16:27:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=aa4f9c5341f5280f16cce0630ea54b84eef717b3'/>
<id>aa4f9c5341f5280f16cce0630ea54b84eef717b3</id>
<content type='text'>
* reformat Lua runtime to make lint CI pass
* reduce max line length to 100</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* reformat Lua runtime to make lint CI pass
* reduce max line length to 100</pre>
</div>
</content>
</entry>
<entry>
<title>docs: fix typos (#18866)</title>
<updated>2022-06-15T00:49:54+00:00</updated>
<author>
<name>dundargoc</name>
<email>33953936+dundargoc@users.noreply.github.com</email>
</author>
<published>2022-06-15T00:49:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=6de7f32d52822c3c09d24720efc65efe97a6e698'/>
<id>6de7f32d52822c3c09d24720efc65efe97a6e698</id>
<content type='text'>
docs: fix typos and similarly insignificant changes

Co-authored-by: zeertzjq &lt;zeertzjq@outlook.com&gt;
Co-authored-by: smjonas &lt;jonas.strittmatter@gmx.de&gt;
Co-authored-by: kanreki &lt;32443233+kanreki@users.noreply.github.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
docs: fix typos and similarly insignificant changes

Co-authored-by: zeertzjq &lt;zeertzjq@outlook.com&gt;
Co-authored-by: smjonas &lt;jonas.strittmatter@gmx.de&gt;
Co-authored-by: kanreki &lt;32443233+kanreki@users.noreply.github.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>fix(lsp): fix multi client handling in code action (#18869)</title>
<updated>2022-06-05T14:43:32+00:00</updated>
<author>
<name>Mathias Fußenegger</name>
<email>mfussenegger@users.noreply.github.com</email>
</author>
<published>2022-06-05T14:43:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=e4df1c9b9e61e79234684d30ca700b42f82bc34a'/>
<id>e4df1c9b9e61e79234684d30ca700b42f82bc34a</id>
<content type='text'>
Fixes https://github.com/neovim/neovim/issues/18860</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes https://github.com/neovim/neovim/issues/18860</pre>
</div>
</content>
</entry>
</feed>
