diff options
| author | Igor Soarez <igor@soarez.org> | 2026-10-12 16:33:58 +0100 |
|---|---|---|
| committer | Igor Soarez <igor@soarez.org> | 2026-10-12 16:33:58 +0100 |
| commit | b2246e1c3ac8419f3b1c84d557df8e926d451af2 (patch) | |
| tree | 8c6ac9e7ecd7fdebf0056733d08440c68bbf33fd /config | |
| parent | fdaf6742b0823b088c58ac8e26f6556a0c12c43f (diff) | |
nvim: ~/x in the space+p directory picker, where it exists
The picker searched only /Volumes/Sense (or ~/src) and ~/.local/share/nvim,
so nothing under ~/x could ever be offered. It is added behind the same
isdirectory check as the other roots, so a machine without ~/x passes find no
missing path.
From change request cbe283.
Diffstat (limited to 'config')
| -rw-r--r-- | config/nvim/lua/plugins/fzf.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/config/nvim/lua/plugins/fzf.lua b/config/nvim/lua/plugins/fzf.lua index 8ef0104..581e600 100644 --- a/config/nvim/lua/plugins/fzf.lua +++ b/config/nvim/lua/plugins/fzf.lua @@ -94,6 +94,7 @@ return { local function build_find_dir_cmd() local home = vim.fn.expand("~") local homeSrc = vim.fn.expand("~/src") + local xDir = vim.fn.expand("~/x") local sense = "/Volumes/Sense" local cmd = "find" local search_paths = {} @@ -109,6 +110,9 @@ return { else table.insert(search_paths, homeSrc) end + if vim.fn.isdirectory(xDir) == 1 then + table.insert(search_paths, xDir) + end table.insert(search_paths, vim.fn.expand("~/.local/share/nvim")) local args = { cmd } |
