-
Notifications
You must be signed in to change notification settings - Fork 162
Options
Emre Dogan edited this page Jun 27, 2023
·
4 revisions
The below applies to buffer type providers, files
, grep
, etc
The below applies to buffer type providers, tabs
, buffers
, lines
and blines
Option | Value Type | Description |
---|---|---|
show_unlisted | bool | Show unlisted buffers (e.g. 'help' buffers). |
show_unloaded | bool | Show unloaded buffers. |
ignore_current_buffer | bool | Don't show results from the currently active buffer. |
current_tab_only | bool | Only show results from buffers open in the current tab. |
no_term_buffers | bool | If false , show results from terminal buffers. |
cwd_only | bool | Only show results that are inside the current working directory. |
cwd | string | nil | Only shows results that are inside the specified working directory. |
Below is an example usage of all the above:
require'fzf-lua'.setup {
files = {
cwd = '~/.config', -- Show files from this directory
...
},
buffers = {
ignore_current_buffer = true, -- Don't show the active buffer
show_unloaded = true, -- show unloaded buffers
cwd_only = false, -- buffers for the cwd only
cwd = nil, -- buffers list for a given dir
...
},
blines = {
no_term_buffers = false, -- include 'term' buffers
...
},
tabs = {
show_unlisted = true, -- Show unlisted buffers
current_tab_only = true, -- Only show buffers from current tab
...
},
}