-
-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[telescope.run_command] : Unknown command #235
Comments
I am sorry for not adding the minimal config, since i am not that good with neovim config and was using LazyVim. |
Also mentioned in doom-neovim/doom-nvim#357 with no response |
I see several issues/potential issues with your config. But beyond that, just looking at your config file structure via Here's a minimal config if you want to test/see for yourself. I can copy this into a directory in -- DO NOT change the paths and don't remove the colorscheme
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.loop.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",
dependencies = {
"nvim-lua/plenary.nvim",
"nvim-telescope/telescope-file-browser.nvim",
},
keys = {
{
"<leader>sB",
":Telescope file_browser path=%:p:h<cr>",
desc = "Browse Files",
},
},
config = function()
require("telescope").setup({})
require("telescope").load_extension("file_browser")
end,
}
vim.g.mapleader = " " -- change this to your preferred leader key
require("lazy").setup(plugins, {
root = root .. "/plugins",
})
vim.cmd.colorscheme("habamax") |
Thanks @jamestrew , after some modifies to the lua file from the minimal config you provided, it's working fine |
Description
Initiating the file browser via the custom keybindings is giving the error of saying unknown command
Neovim version
Operating system and version
Ubuntu 22.10
Steps to reproduce
1.) Add file-browser.lua in your plugins folder of nvim config
2.) Copy the following code
Expected behavior
To open the file browser
Actual behavior
Giving error while running the command
Minimal config
The text was updated successfully, but these errors were encountered: