Skip to content

Commit f41f8b0

Browse files
author
Olivier Roques
committed
refactor: drop support for neovim 0.5
Closes #25 Closes #32
1 parent 85050e3 commit f41f8b0

File tree

2 files changed

+84
-125
lines changed

2 files changed

+84
-125
lines changed

README.md

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,9 @@
22

33
This plugin makes the Neovim LSP client use
44
[FZF](https://github.com/junegunn/fzf) to display results and navigate the code.
5+
It works by redefining your LSP handlers so that they call FZF.
56

6-
It works by redefining LSP handlers so that they call FZF. Therefore you don't
7-
need to change any of your exising LSP mappings. It's also small and written
8-
entirely in Lua.
9-
10-
The plugin is compatible only with Neovim 0.5+.
7+
**The plugin requires Neovim 0.6+.** For Neovim 0.5, use version `v0.1.0`.
118

129
![demo](./demo.gif)
1310

@@ -46,7 +43,7 @@ In addition, the plugin creates the following commands:
4643
current buffer).
4744
* `:LspDiagnosticsAll`: list diagnostics from all buffers.
4845
* `:LspFuzzyLast`: re-open the last results (requires `save_last = true`, see
49-
[Configuration](#configuration)). Only for location results.
46+
[Configuration](#configuration)).
5047

5148
By default the following FZF actions are available:
5249
* <kbd>**tab**</kbd> : select multiple entries
@@ -64,8 +61,8 @@ with their default settings:
6461
require('lspfuzzy').setup {
6562
methods = 'all', -- either 'all' or a list of LSP methods (see below)
6663
jump_one = true, -- jump immediately if there is only one location
67-
callback = nil, -- callback called after jumping to a location
6864
save_last = false, -- save last location results for the :LspFuzzyLast command
65+
callback = nil, -- callback called after jumping to a location
6966
fzf_preview = { -- arguments to the FZF '--preview-window' option
7067
'right:+{2}-/2' -- preview on the right and centered on entry
7168
},
@@ -94,7 +91,6 @@ You can enable FZF only for some LSP methods by passing them as a list to the
9491
```
9592
callHierarchy/incomingCalls
9693
callHierarchy/outgoingCalls
97-
textDocument/codeAction // only for neovim <= v0.5.1
9894
textDocument/declaration
9995
textDocument/definition
10096
textDocument/documentSymbol
@@ -121,10 +117,5 @@ The plugin uses the filename embedded in the FZF entry currently selected to
121117
jump to the correct location. Therefore it must resolve to a valid path: for
122118
instance `:.` or `:p` can be used but not `:t`.
123119

124-
#### Code Actions do not use FZF
125-
The handler for code actions cannot be overriden anymore in Neovim 0.5.2+, see
126-
[neovim#15848](https://github.com/neovim/neovim/issues/15848). You can use the
127-
default quickfix window instead.
128-
129120
## License
130121
[LICENSE](./LICENSE)

0 commit comments

Comments
 (0)