<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rneovim.git/runtime/lua/vim/lsp/buf.lua, branch floattitle</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(lua): properly configure luacheck and remove `local vim = ...` lines (#20551)</title>
<updated>2022-10-09T10:40:56+00:00</updated>
<author>
<name>Folke Lemaitre</name>
<email>folke.lemaitre@gmail.com</email>
</author>
<published>2022-10-09T10:40:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=8c2226fc30931690186390d86f963cd43e6947ef'/>
<id>8c2226fc30931690186390d86f963cd43e6947ef</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): remove deprecated lsp functions (#20421)</title>
<updated>2022-10-01T09:35:36+00:00</updated>
<author>
<name>Mathias Fußenegger</name>
<email>mfussenegger@users.noreply.github.com</email>
</author>
<published>2022-10-01T09:35:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=e54541f7f941427b408f8d5a7bab446c141b5f76'/>
<id>e54541f7f941427b408f8d5a7bab446c141b5f76</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fix(docs): invalid :help links #20345</title>
<updated>2022-09-25T23:58:27+00:00</updated>
<author>
<name>Justin M. Keyes</name>
<email>justinkz@gmail.com</email>
</author>
<published>2022-09-25T23:58:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=63be7651829f8b77c4974d08ebe09f7775e41a8a'/>
<id>63be7651829f8b77c4974d08ebe09f7775e41a8a</id>
<content type='text'>
Fix those naughty single quotes.

closes #20159</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix those naughty single quotes.

closes #20159</pre>
</div>
</content>
</entry>
<entry>
<title>fix(lsp): use correct function name in deprecated message (#20308)</title>
<updated>2022-09-24T01:20:56+00:00</updated>
<author>
<name>Mike</name>
<email>Mike325@users.noreply.github.com</email>
</author>
<published>2022-09-24T01:20:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=14610332b2e851f9464a2d32a0ef3869dcff9834'/>
<id>14610332b2e851f9464a2d32a0ef3869dcff9834</id>
<content type='text'>
fix: use correct function name in deprecated message</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
fix: use correct function name in deprecated message</pre>
</div>
</content>
</entry>
<entry>
<title>feat(lsp): add range option to lsp.buf.format (#19998)</title>
<updated>2022-09-08T09:33:04+00:00</updated>
<author>
<name>Mathias Fußenegger</name>
<email>mfussenegger@users.noreply.github.com</email>
</author>
<published>2022-09-08T09:33:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.josher.dev/rneovim.git/commit/?id=11167ab6d569994dd0a4f58155c84b118706380c'/>
<id>11167ab6d569994dd0a4f58155c84b118706380c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<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>
</feed>
