2
2
3
3
This plugin makes the Neovim LSP client use
4
4
[ 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.
5
6
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 ` .
11
8
12
9
![ demo] ( ./demo.gif )
13
10
@@ -46,7 +43,7 @@ In addition, the plugin creates the following commands:
46
43
current buffer).
47
44
* ` :LspDiagnosticsAll ` : list diagnostics from all buffers.
48
45
* ` :LspFuzzyLast ` : re-open the last results (requires ` save_last = true ` , see
49
- [ Configuration] ( #configuration ) ). Only for location results.
46
+ [ Configuration] ( #configuration ) ).
50
47
51
48
By default the following FZF actions are available:
52
49
* <kbd >** tab** </kbd > : select multiple entries
@@ -64,8 +61,8 @@ with their default settings:
64
61
require (' lspfuzzy' ).setup {
65
62
methods = ' all' , -- either 'all' or a list of LSP methods (see below)
66
63
jump_one = true , -- jump immediately if there is only one location
67
- callback = nil , -- callback called after jumping to a location
68
64
save_last = false , -- save last location results for the :LspFuzzyLast command
65
+ callback = nil , -- callback called after jumping to a location
69
66
fzf_preview = { -- arguments to the FZF '--preview-window' option
70
67
' right:+{2}-/2' -- preview on the right and centered on entry
71
68
},
@@ -94,7 +91,6 @@ You can enable FZF only for some LSP methods by passing them as a list to the
94
91
```
95
92
callHierarchy/incomingCalls
96
93
callHierarchy/outgoingCalls
97
- textDocument/codeAction // only for neovim <= v0.5.1
98
94
textDocument/declaration
99
95
textDocument/definition
100
96
textDocument/documentSymbol
@@ -121,10 +117,5 @@ The plugin uses the filename embedded in the FZF entry currently selected to
121
117
jump to the correct location. Therefore it must resolve to a valid path: for
122
118
instance ` :. ` or ` :p ` can be used but not ` :t ` .
123
119
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
-
129
120
## License
130
121
[ LICENSE] ( ./LICENSE )
0 commit comments