Closed sfwnisme closed 2 months ago
Please try this minimal config
local root = vim.fn.fnamemodify("./.repro", ":p")
-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "cache" }) do
vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end
-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.uv.fs_stat(lazypath) then
vim.fn.system({
"git",
"clone",
"--filter=blob:none",
"https://github.com/folke/lazy.nvim.git",
lazypath,
})
end
vim.opt.runtimepath:prepend(lazypath)
-- install plugins
local plugins = {
{
"nvim-telescope/telescope.nvim",
tag = "0.1.8",
dependencies = { "nvim-lua/plenary.nvim" },
config = function()
require("telescope").setup({})
local builtin = require("telescope.builtin")
vim.keymap.set("n", "<C-p>", builtin.find_files, {})
end,
},
}
require("lazy").setup(plugins, {
root = root .. "/plugins",
})
save this somewhere and start neovim with nvim -u minimal.lua
I'm not able to replicate this and I'm not even sure how this error is possible without some broken telescope installation.
@jamestrew thank you, but it seems due to the previous package manager I used 'packer', after I deleted it every thing work fine. At all I switched to LazyVim.
Description
I'am using neovim with lazy.nvim package manager. the keymap I set for find_file is
vim.keymap.set("n", "<C-p>", builtin.find_files, {})
sometimes I face this error and not showing the find_file
you can check may config for nvim in this repo
Neovim version
Operating system and version
windows 11 with wsl2
Telescope version / branch / rev
telescope 0.1.8
checkhealth telescope
Steps to reproduce
Expected behavior
the extended behavior is opening the file finder on its regular shape
Actual behavior
it shows me the following error and cant use the file finder feature
Minimal config