3 ms·
I've got a lot of shortcuts set up for telescope (fuzzy finder ui in neovim). One of them is leader fa for "find around" which limits the file list to current d
by kzrdude 2y ago
I've got a lot of shortcuts set up for telescope (fuzzy finder ui in neovim). One of them is leader fa for "find around" which limits the file list to current directory and the next level down (only). It's quite useful in the same scenario.
The regular fuzzy finder is unfortunately useless in the home directory (too many files), with this limit, it's useful.
- haidousm 2y agooh that's great -- i think i got it working with the following config: local builtin = require("telescope.builtin") local utils = require("telescope.utils") vim.keymap.set("n", "<leader>fa", function() builtin.find_files({ cwd = utils.buffer_dir() }) end, { desc = "[F]ind [A]round currently open buffer" })
- kzrdude 2y agoThis is what I do to include the depth restriction require("telescope.builtin").find_files({ cwd = buffer_directory(), prompt_title = "Find Around", find_command = vim.list_extend(vim.list_slice(default_find_command), {"-d2"}), })