конкретных файлах? Типа такой штуки в VSC
:h telescope.builtin.live_grep() чекай параметры search_dirs и glob_pattern
тогда будет теряться промпт поиска файла / текста Например - ищу по слову button, вижу, что дохера результатов. Хочу поменять директорию, чтобы более точечно искать
['<A-d>'] = function(prompt_buffer) local prompt = vim.api.nvim_buf_get_lines(prompt_buffer, 0, -1, false)[1] or '' require('telescope.actions').close(prompt_buffer) vim.ui.input({ prompt = 'Enter directories: ' }, function(input) local dirs = {} for dir in string.gmatch(input, '[^,]+') do table.insert(dirs, dir) end require('telescope.builtin').live_grep({ default_text = prompt, search_dirs = dirs }) end) end
Обсуждают сегодня