mirror of
https://github.com/He4eT/dotfiles.git
synced 2026-05-04 23:47:23 +00:00
nvim: update fzf-lua setup
This commit is contained in:
parent
83ac6b0bf0
commit
be6fd70539
1 changed files with 19 additions and 19 deletions
|
|
@ -276,16 +276,15 @@ require('leap').opts.safe_labels = {}
|
||||||
local fzf = require('fzf-lua')
|
local fzf = require('fzf-lua')
|
||||||
|
|
||||||
fzf.setup({
|
fzf.setup({
|
||||||
|
winopts = {
|
||||||
border = 'single',
|
border = 'single',
|
||||||
fullscreen = true,
|
fullscreen = true,
|
||||||
|
|
||||||
previewers = {
|
previewers = {
|
||||||
builtin = {
|
builtin = {
|
||||||
syntax = true,
|
syntax = true,
|
||||||
syntax_limit_b = 1024 * 64, -- syntax limit (bytes), 0=nolimit
|
syntax_limit_b = 1024 * 64, -- syntax limit (bytes), 0=nolimit
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
grep = {
|
grep = {
|
||||||
rg_opts = '--vimgrep --smart-case --max-columns=512',
|
rg_opts = '--vimgrep --smart-case --max-columns=512',
|
||||||
file_ignore_patterns = {
|
file_ignore_patterns = {
|
||||||
|
|
@ -295,9 +294,10 @@ fzf.setup({
|
||||||
'^.yarn/'
|
'^.yarn/'
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
},
|
||||||
fzf_opts = {
|
fzf_opts = {
|
||||||
['--border'] = 'none',
|
['--border'] = 'none',
|
||||||
|
['--preview-window'] = 'border-sharp',
|
||||||
},
|
},
|
||||||
fzf_colors = {
|
fzf_colors = {
|
||||||
['fg'] = { 'fg', 'CursorLine' },
|
['fg'] = { 'fg', 'CursorLine' },
|
||||||
|
|
@ -306,7 +306,7 @@ fzf.setup({
|
||||||
['fg+'] = { 'fg', 'Normal' },
|
['fg+'] = { 'fg', 'Normal' },
|
||||||
['bg+'] = { 'bg', 'CursorLine' },
|
['bg+'] = { 'bg', 'CursorLine' },
|
||||||
['hl+'] = { 'fg', 'Statement' },
|
['hl+'] = { 'fg', 'Statement' },
|
||||||
['info'] = { 'fg', 'PreProc' },
|
['info'] = { 'fg', 'Normal' },
|
||||||
['prompt'] = { 'fg', 'Conditional' },
|
['prompt'] = { 'fg', 'Conditional' },
|
||||||
['pointer'] = { 'fg', 'Exception' },
|
['pointer'] = { 'fg', 'Exception' },
|
||||||
['marker'] = { 'fg', 'Keyword' },
|
['marker'] = { 'fg', 'Keyword' },
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue