|
| 1 | +*fzf-lua-opts.txt* For Neovim >= 0.8.0 Last change: 2024 April 06 |
| 2 | + |
| 3 | +============================================================================== |
| 4 | +Table of Contents *fzf-lua-opts-table-of-contents* |
| 5 | + |
| 6 | +Setup ................................................... |fzf-lua-opts-setup| |
| 7 | +Globals ............................................... |fzf-lua-opts-globals| |
| 8 | +Cmd: files ......................................... |fzf-lua-opts-cmd:-files| |
| 9 | +Cmd: LSP commands ........................... |fzf-lua-opts-cmd:-lsp-commands| |
| 10 | + |
| 11 | +============================================================================== |
| 12 | +FZF-LUA OPTIONS *fzf-lua-opts-fzf-lua-options* |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | +------------------------------------------------------------------------------ |
| 17 | +SETUP *fzf-lua-opts-setup* |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | +------------------------------------------------------------------------------ |
| 22 | +GLOBALS *fzf-lua-opts-globals* |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | +winopts.row *fzf-lua-opts-winopts.row* |
| 28 | + |
| 29 | +Type: `number`, Default: `0.35` |
| 30 | + |
| 31 | +Screen row where to place the fzf-lua float window, between 0-1 will represent |
| 32 | +precentage of `vim.o.lines` (0: top, 1: bottom), if >= 1 will attempt to place |
| 33 | +the float in the exact screen line. |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | +winopts.col *fzf-lua-opts-winopts.col* |
| 38 | + |
| 39 | +Type: `number`, Default: `0.55` |
| 40 | + |
| 41 | +Screen column where to place the fzf-lua float window, between 0-1 will |
| 42 | +represent precentage of `vim.o.columns` (0: leftmost, 1: rightmost), if >= 1 |
| 43 | +will attempt to place the float in the exact screen column. |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | +winopts.preview.border *fzf-lua-opts-winopts.preview.border* |
| 48 | + |
| 49 | +Type: `string`, Default: `border` |
| 50 | + |
| 51 | +Applies only to fzf native previewers (i.e. `bat`, `git_status`), set to |
| 52 | +`noborder` to hide the preview border, consult `man fzf` for all vailable |
| 53 | +options. |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | +CMD: FILES *fzf-lua-opts-cmd:-files* |
| 58 | + |
| 59 | +Files picker, will enumrate the filesystem of the current working directory |
| 60 | +using `fd`, `rg` and `grep` or `dir.exe`. |
| 61 | + |
| 62 | + |
| 63 | + |
| 64 | +files.cwd *fzf-lua-opts-files.cwd* |
| 65 | + |
| 66 | +Type: `string`, Default: `nil` |
| 67 | + |
| 68 | +Sets the current working directory. |
| 69 | + |
| 70 | + |
| 71 | + |
| 72 | +files.cwd_prompt *fzf-lua-opts-files.cwd_prompt* |
| 73 | + |
| 74 | +Type: `boolean`, Default: `true` |
| 75 | + |
| 76 | +Display the current working directory in the prompt (`fzf.vim` style). |
| 77 | + |
| 78 | + |
| 79 | + |
| 80 | +files.cwd_prompt_shorten_len *fzf-lua-opts-files.cwd_prompt_shorten_len* |
| 81 | + |
| 82 | +Type: `number`, Default: `32` |
| 83 | + |
| 84 | +Prompt over this length will be shortened, e.g. `~/.config/nvim/lua/` will be |
| 85 | +shortened to `~/.c/n/lua/` (for more info see `:help pathshorten`). |
| 86 | + |
| 87 | +<sub><sup>*Requires `cwd_prompt=true`</sup></sub> |
| 88 | + |
| 89 | + |
| 90 | + |
| 91 | +files.cwd_prompt_shorten_val *fzf-lua-opts-files.cwd_prompt_shorten_val* |
| 92 | + |
| 93 | +Type: `number`, Default: `1` |
| 94 | + |
| 95 | +Length of shortened prompt path parts, e.g. set to `2`, `~/.config/nvim/lua/` |
| 96 | +will be shortened to `~/.co/nv/lua/` (for more info see `:help pathshorten`). |
| 97 | + |
| 98 | +<sub><sup>*Requires `cwd_prompt=true`</sup></sub> |
| 99 | + |
| 100 | + |
| 101 | + |
| 102 | +CMD: LSP COMMANDS *fzf-lua-opts-cmd:-lsp-commands* |
| 103 | + |
| 104 | + |
| 105 | + |
| 106 | +lsp_references *fzf-lua-opts-lsp_references* |
| 107 | + |
| 108 | +LSP references |
| 109 | + |
| 110 | + |
| 111 | + |
| 112 | +async_or_timeout *fzf-lua-opts-async_or_timeout* |
| 113 | + |
| 114 | +Type: `number|boolean`, Default: `5000` |
| 115 | + |
| 116 | +Whether LSP calls are made block, set to `true` for asynchronous, otherwise |
| 117 | +defines the timeout (ms) for the LPS request via `vim.lsp.buf_request_sync`. |
| 118 | + |
| 119 | + |
| 120 | +vim:tw=78:ts=8:ft=help:norl: |
0 commit comments