Skip to content
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

Whaler Explore command not found when configuring another file explorer #22

Open
mcp1766 opened this issue Nov 2, 2024 · 0 comments
Open

Comments

@mcp1766
Copy link

mcp1766 commented Nov 2, 2024

Try to configure Whaler but no matter which file explorer to configure and also the command, it always launch Explore that I dont have.
This is my configuration in Telescope
`
",y",

     function()
        local telescope = require("telescope")
        --vim.keymap.set("n", "<leader>fw", function()
        telescope.extensions.whaler.whaler({
           directories = { "/home/mcp/tmp/", "/home/mcp/Projets/", "/home/mcp/notes/" },
           oneoff_directories = { "/home/mcp/.config/nvim" },
           auto_file_explorer = true,
           auto_cwd = true,
           file_explorer = "nvimtree",
           file_expplorer_config = {
              hidden = false,
              plugin_name = "nvim-tree",
              command = "NvimTreeOpen",
              prefix_dir = " ",
           },
           theme = {
              result_title = "Your selection..",
              layout_strategy = 'center',
              previewer = false,
              layout_config = {
                 height = 0.3,
                 width = 0.3,
              },
              sorting_strategy = "ascending",
              border = true,type (expected: string or dictionary)
 }
        })
        -- end)
     end,
     desc = "Open Whaler",
  },

`

And the error:

type (expected: string or dictionary)
E5108: Error executing lua: ...im/lazy/whaler/lua/telescope/_extensions/whaler/main.lua:175: Error while parsing command line: E492: Commande inconnue: Explore /home/mcp/tmp/git-test2

stack traceback:
[C]: in function 'nvim_parse_cmd'
...im/lazy/whaler/lua/telescope/_extensions/whaler/main.lua:175: in function 'run_replace_or_original'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant