2
2
3
3
# fzf :heart : lua
4
4
5
- ![ Neovim version] ( https://img.shields.io/badge/Neovim-0.5 -57A143?style=flat-square&logo=neovim )
5
+ ![ Neovim version] ( https://img.shields.io/badge/Neovim-0.7 -57A143?style=flat-square&logo=neovim )
6
6
7
7
[ Quickstart] ( #quickstart ) • [ Installation] ( #installation ) • [ Usage] ( #usage ) • [ Commands] ( #commands ) • [ Customization] ( #customization ) • [ Wiki] ( https://github.com/ibhagwan/fzf-lua/wiki )
8
8
@@ -55,7 +55,7 @@ Using [lazy.nvim](https://github.com/folke/lazy.nvim)
55
55
56
56
### Dependencies
57
57
58
- - [ ` neovim ` ] ( https://github.com/neovim/neovim/releases ) version > ` 0.5 .0 `
58
+ - [ ` neovim ` ] ( https://github.com/neovim/neovim/releases ) version > ` 0.7 .0 `
59
59
- [ ` fzf ` ] ( https://github.com/junegunn/fzf ) version > ` 0.25 `
60
60
or [ ` skim ` ] ( https://github.com/skim-rs/skim ) binary installed
61
61
- [ nvim-web-devicons] ( https://github.com/nvim-tree/nvim-web-devicons )
@@ -406,9 +406,8 @@ winopts = {
406
406
width = 0.80 , -- window width
407
407
row = 0.35 , -- window row position (0=top, 1=bottom)
408
408
col = 0.50 , -- window col position (0=left, 1=right)
409
- -- border argument passthrough to nvim_open_win(), also used
410
- -- 'none', 'single', 'double', 'thicc' (+cc) or 'rounded' (default)
411
- border = { ' ╭' , ' ─' , ' ╮' , ' │' , ' ╯' , ' ─' , ' ╰' , ' │' },
409
+ -- border argument passthrough to nvim_open_win()
410
+ border = " rounded" ,
412
411
-- Backdrop opacity, 0 is fully opaque, 100 is fully transparent (i.e. disabled)
413
412
backdrop = 60 ,
414
413
-- title = "Title",
@@ -425,34 +424,35 @@ winopts = {
425
424
preview = {
426
425
-- default = 'bat', -- override the default previewer?
427
426
-- default uses the 'builtin' previewer
428
- border = ' border' , -- border|noborder, applies only to
427
+ border = " border" , -- preview border: accepts both `nvim_open_win`
428
+ -- and fzf values (e.g. "border-top", "none")
429
429
-- native fzf previewers (bat/cat/git/etc)
430
- wrap = ' nowrap' , -- wrap|nowrap
431
- hidden = ' nohidden' , -- hidden|nohidden
432
- vertical = ' down:45%' , -- up|down:size
433
- horizontal = ' right:60%' , -- right|left:size
434
- layout = ' flex' , -- horizontal|vertical|flex
430
+ wrap = " nowrap" , -- wrap|nowrap
431
+ hidden = " nohidden" , -- hidden|nohidden
432
+ vertical = " down:45%" , -- up|down:size
433
+ horizontal = " right:60%" , -- right|left:size
434
+ layout = " flex" , -- horizontal|vertical|flex
435
435
flip_columns = 100 , -- #cols to switch to horizontal on flex
436
436
-- Only used with the builtin previewer:
437
437
title = true , -- preview border title (file/buf)?
438
438
title_pos = " center" , -- left|center|right, title alignment
439
- scrollbar = ' float' , -- `false` or string:'float|border'
439
+ scrollbar = " float" , -- `false` or string:'float|border'
440
440
-- float: in-window floating border
441
441
-- border: in-border "block" marker
442
- scrolloff = ' -2 ' , -- float scrollbar offset from right
442
+ scrolloff = - 1 , -- float scrollbar offset from right
443
443
-- applies only when scrollbar = 'float'
444
444
delay = 20 , -- delay(ms) displaying the preview
445
445
-- prevents lag on fast scrolling
446
446
winopts = { -- builtin previewer window options
447
447
number = true ,
448
448
relativenumber = false ,
449
449
cursorline = true ,
450
- cursorlineopt = ' both' ,
450
+ cursorlineopt = " both" ,
451
451
cursorcolumn = false ,
452
- signcolumn = ' no ' ,
452
+ signcolumn = " no " ,
453
453
list = false ,
454
454
foldenable = false ,
455
- foldmethod = ' manual' ,
455
+ foldmethod = " manual" ,
456
456
},
457
457
},
458
458
on_create = function ()
0 commit comments