Skip to content

bug: The picker doesn't support Windows 11. [SOLVED] #1563

@pablomylovee

Description

@pablomylovee

Did you check docs and existing issues?

  • I have read all the snacks.nvim docs
  • I have updated the plugin to the latest version before submitting this issue
  • I have searched the existing issues of snacks.nvim
  • I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

NVIM v0.10.4 | Build type: Release | LuaJIT 2.1.1713484068

Operating system/version

Windows 11

Describe the bug

I'm a new user to Neovim and I use it on Windows 11, the picker plugin is trying to use a Linux command to find files. (I'm using the files picker)

This is the error that occurs after I execute Snacks.picker.files():

Command failed:
- cmd: `find . -type f -not -path */.git/* -not -path */.*`

Steps To Reproduce

  1. Run :lua Snacks.picker.files() on Windows 11.

Expected Behavior

Runs the file picker normally, I guess?

Repro

-- I don't know what a Repro is, sorry.

vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()

require("lazy.minit").repro({
  spec = {
    { "folke/snacks.nvim", opts = {} },
    -- add any other plugins here
  },
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions