diff options
| author | Simon Hauser <Simon-Hauser@outlook.de> | 2022-04-25 22:52:00 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-25 22:52:00 +0200 |
| commit | e7e90466de0571d39fe642cdfec1c577451b8be1 (patch) | |
| tree | 6fbec8063e7e6e1c39892c0e246172534e6e606f /doc | |
| parent | 5045d7e5e74208dbbf98271861b05ff42dc66360 (diff) | |
break: remove lsp code actions (#1866)
see :help telescope.changelog-1866 for more information
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/telescope.txt | 29 | ||||
| -rw-r--r-- | doc/telescope_changelog.txt | 22 |
2 files changed, 22 insertions, 29 deletions
diff --git a/doc/telescope.txt b/doc/telescope.txt index 501c2e3..f2be803 100644 --- a/doc/telescope.txt +++ b/doc/telescope.txt @@ -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())` < diff --git a/doc/telescope_changelog.txt b/doc/telescope_changelog.txt index 0698664..a1b509d 100644 --- a/doc/telescope_changelog.txt +++ b/doc/telescope_changelog.txt @@ -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: |
