From b2246e1c3ac8419f3b1c84d557df8e926d451af2 Mon Sep 17 00:00:00 2001 From: Igor Soarez Date: Mon, 12 Oct 2026 16:33:58 +0100 Subject: 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. --- config/nvim/lua/plugins/fzf.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'config/nvim/lua/plugins/fzf.lua') 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 } -- cgit v1.2.3