You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
==============================================================================
telescope: require("telescope.health").check()
Checking for required plugins ~
- OK plenary installed.
- OK nvim-treesitter installed.
Checking external dependencies ~
- OK rg: found ripgrep 11.0.2
- WARNING fd: not found. Install [sharkdp/fd](https://github.com/sharkdp/fd) for extended capabilities
===== Installed extensions ===== ~
Telescope Extension: `fzf` ~
- OK lib working as expected
- OK file_sorter correctly configured
- OK generic_sorter correctly configured
Steps to reproduce
nvim -u minimal.lua minimal.lua
:Telescope live_grep
Type something
Expected behavior
live_grep should work when additional_args is set
Actual behavior
[TL;DR: see the screenshot below]
the filename and the contents somehow get merged (when pressing enter, Telescope will try to open this concatenated string as a file, e.g. the filename becomes "test.lua:3:35:vim.api.nvim_create_user_command("Testt", function() end, {" [New] --No lines in buffer--)
the preview is empty
scrolling down sometimes causes errors when the "filename" contains an opening but not a closing bracket:
Error executing vim.schedule lua callback: Vim:E220: Missing }.
stack traceback:
[C]: in function 'expand'
...packer/start/telescope.nvim/lua/telescope/from_entry.lua:33: in function 'path'
...scope.nvim/lua/telescope/previewers/buffer_previewer.lua:471: in function 'define_preview'
...scope.nvim/lua/telescope/previewers/buffer_previewer.lua:388: in function 'preview'
...ck/packer/start/telescope.nvim/lua/telescope/pickers.lua:1075: in function 'refresh_previewer'
...ck/packer/start/telescope.nvim/lua/telescope/pickers.lua:1028: in function 'set_selection'
...ck/packer/start/telescope.nvim/lua/telescope/pickers.lua:1360: in function '_do_selection'
...ck/packer/start/telescope.nvim/lua/telescope/pickers.lua:1322: in function ''
vim/_editor.lua: in function <vim/_editor.lua:0>
Minimal config
vim.cmd([[set runtimepath=$VIMRUNTIME]])
vim.cmd([[set packpath=/tmp/nvim/site]])
localpackage_root="/tmp/nvim/site/pack"localinstall_path=package_root.."/packer/start/packer.nvim"localfunctionload_plugins()
require("packer").startup({
{
"wbthomason/packer.nvim",
{
"nvim-telescope/telescope.nvim",
requires= {
"nvim-lua/plenary.nvim",
"nvim-treesitter/nvim-treesitter",
{ "nvim-telescope/telescope-fzf-native.nvim", run="make" },
},
},
-- ADD PLUGINS THAT ARE _NECESSARY_ FOR REPRODUCING THE ISSUE
},
config= {
package_root=package_root,
compile_path=install_path.."/plugin/packer_compiled.lua",
display= { non_interactive=true },
},
})
end_G.load_config=function()
require("telescope").setup({
pickers= {
live_grep= {
additional_args= { "-tlua" },
},
},
})
require("telescope").load_extension("fzf")
-- ADD INIT.LUA SETTINGS THAT ARE _NECESSARY_ FOR REPRODUCING THE ISSUEendifvim.fn.isdirectory(install_path) ==0thenprint("Installing Telescope and dependencies.")
vim.fn.system({ "git", "clone", "--depth=1", "https://github.com/wbthomason/packer.nvim", install_path })
endload_plugins()
require("packer").sync()
vim.cmd([[autocmd User PackerComplete ++once echo "Ready!" | lua load_config()]])
The text was updated successfully, but these errors were encountered:
Description
:Telescope live_grep
does not work at all since 9cf4658 when settingpickers.live_grep.additional_args
(bisected).Neovim version
Operating system and version
Linux 20.2
Telescope version / branch / rev
master (since 9cf4658)
checkhealth telescope
Steps to reproduce
nvim -u minimal.lua minimal.lua
:Telescope live_grep
Expected behavior
live_grep
should work whenadditional_args
is setActual behavior
[TL;DR: see the screenshot below]
"test.lua:3:35:vim.api.nvim_create_user_command("Testt", function() end, {" [New] --No lines in buffer--
)Minimal config
The text was updated successfully, but these errors were encountered: