4 ms·
oh that's great -- i think i got it working with the following config: local builtin = require("telescope.builtin") local utils = require("telescope.utils"
by haidousm 2y ago
oh 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"}), })