mirror of
https://github.com/zoriya/telescope.nvim.git
synced 2026-06-02 11:05:45 +00:00
break: remove lsp code actions (#1866)
see :help telescope.changelog-1866 for more information
This commit is contained in:
+1
-28
@@ -1403,33 +1403,6 @@ builtin.lsp_implementations({opts}) *telescope.builtin.lsp_implementations()*
|
||||
{trim_text} (boolean) trim results text (default: false)
|
||||
|
||||
|
||||
builtin.lsp_code_actions({opts}) *telescope.builtin.lsp_code_actions()*
|
||||
Lists any LSP actions for the word under the cursor which can be triggered
|
||||
with `<cr>`
|
||||
|
||||
|
||||
Parameters: ~
|
||||
{opts} (table) options to pass to the picker
|
||||
|
||||
Options: ~
|
||||
{timeout} (number) timeout for the sync call (default: 10000)
|
||||
|
||||
|
||||
builtin.lsp_range_code_actions({opts}) *telescope.builtin.lsp_range_code_actions()*
|
||||
Lists any LSP actions for a given range, that can be triggered with `<cr>`
|
||||
|
||||
|
||||
Parameters: ~
|
||||
{opts} (table) options to pass to the picker
|
||||
|
||||
Options: ~
|
||||
{timeout} (number) timeout for the sync call (default: 10000)
|
||||
{start_line} (number) where the code action starts (default: handled
|
||||
by :'<,'>Telescope lsp_range_code_actions)
|
||||
{end_line} (number) where the code action ends (default: handled by
|
||||
:'<,'>Telescope lsp_range_code_actions)
|
||||
|
||||
|
||||
builtin.lsp_document_symbols({opts}) *telescope.builtin.lsp_document_symbols()*
|
||||
Lists LSP document symbols in the current buffer
|
||||
- Default keymaps:
|
||||
@@ -1564,7 +1537,7 @@ themes.get_cursor() *telescope.themes.get_cursor()*
|
||||
|
||||
`local builtin = require('telescope.builtin')`
|
||||
`local themes = require('telescope.themes')`
|
||||
`builtin.lsp_code_actions(themes.get_cursor())`
|
||||
`builtin.lsp_references(themes.get_cursor())`
|
||||
<
|
||||
|
||||
|
||||
|
||||
@@ -161,7 +161,7 @@ get all diagnostics for all open buffers.
|
||||
|
||||
*telescope.changelog-1851*
|
||||
|
||||
Date: December 10, 2021
|
||||
Date: April 22, 2022
|
||||
PR: https://github.com/nvim-telescope/telescope.nvim/pull/1851
|
||||
|
||||
Telescope requires now Neovim release 0.7.0 or a more recent nightly.
|
||||
@@ -175,5 +175,25 @@ versions. You can read more about this strategy here:
|
||||
https://github.com/nvim-telescope/telescope.nvim/issues/1772
|
||||
|
||||
|
||||
*telescope.changelog-1866*
|
||||
|
||||
Date: April 25, 2022
|
||||
PR: https://github.com/nvim-telescope/telescope.nvim/pull/1866
|
||||
|
||||
We decided to remove both `lsp_code_actions` and `lsp_range_code_actions`.
|
||||
Currently, both functions are highly duplicated code from neovim, with fewer
|
||||
features, because it's out of date. So rather that we copy over the required
|
||||
changes to fix some bugs or implement client side code actions, we decided to
|
||||
remove both of them and suggest you use `vim.lsp.buf.code_actions` and
|
||||
`vim.lsp.buf.range_code_actions`. The transition to it is easy thanks to
|
||||
`vim.ui.select` which allows you to override the select UI. We provide a small
|
||||
extension for quite some time that make it easy to use telescope for
|
||||
`vim.ui.select`. You can found the code here
|
||||
https://github.com/nvim-telescope/telescope-ui-select.nvim. It offers the same
|
||||
displaying as the current version of `lsp_code_actions`. An alternative is
|
||||
https://github.com/stevearc/dressing.nvim which has support for multiple
|
||||
different backends including telescope.
|
||||
|
||||
|
||||
|
||||
vim:tw=78:ts=8:ft=help:norl:
|
||||
|
||||
Reference in New Issue
Block a user