At the time of writing, the 0.2.x branch of smart-open.nvim produces a strange "phantom" entry, with an empty filename, seemingly containing raw ls command output. See the screenshot below:
This weird entry appears in the Telescope entry regardless of the CWD. I can confirm that switching back to the 0.1.x branch of smart-open.nvim makes it magically go away, which means this bug is likely specific to the 0.2.x branch.
Below is the lazy.nvim configuration I used to configure telescope.nvim and smart-open.nvim:
At the time of writing, the
0.2.x
branch ofsmart-open.nvim
produces a strange "phantom" entry, with an empty filename, seemingly containing rawls
command output. See the screenshot below: This weird entry appears in the Telescope entry regardless of the CWD. I can confirm that switching back to the0.1.x
branch ofsmart-open.nvim
makes it magically go away, which means this bug is likely specific to the0.2.x
branch.Below is the
lazy.nvim
configuration I used to configuretelescope.nvim
andsmart-open.nvim
:Click to reveal full config
```lua local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" if not (vim.uv or vim.loop).fs_stat(lazypath) then vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", "--branch=stable", lazypath, }) end vim.opt.rtp:prepend(lazypath) require('lazy').setup({ { "nvim-telescope/telescope.nvim", event = "VimEnter", dependencies = { "nvim-lua/plenary.nvim", { "nvim-telescope/telescope-fzf-native.nvim", build = "make", cond = function() return vim.fn.executable("make") == 1 end, }, { "danielfalk/smart-open.nvim", branch = "0.2.x", dependencies = { "kkharji/sqlite.lua" }, config = true, }, { "nvim-telescope/telescope-ui-select.nvim" }, { "nvim-tree/nvim-web-devicons" }, }, config = function() require("telescope").setup({ defaults = { file_ignore_patterns = { ".git/", "node_modules/", "target/", "%.gif", "%.jpeg", "%.jpg", "%.png", }, }, extensions = { smart_open = { match_algorithm = "fzf", }, ["ui-select"] = { require("telescope.themes").get_dropdown(), }, }, }) pcall(require("telescope").load_extension, "fzf") pcall(require("telescope").load_extension, "smart_open") pcall(require("telescope").load_extension, "ui-select") local builtin = require("telescope.builtin") vim.keymap.set("n", "To reproduce the screenshot above, try running the following command in Neovim:
Similar results can be seen if you use the Lua API to launch the picker.