Skip to content

Neovim Projects picker is empty: snacks scans ~/dev and ~/projects, Omarchy creates ~/Projects #245

Description

@Vegasq

What happens

On a fresh Omarchy install, the Neovim dashboard's Projects button (p, also <leader>fp) opens an empty picker. There are no projects listed, even when ~/Projects is full of git repositories.

Why

Snacks.picker.projects() builds its list from two sources:

  1. Git roots of recently opened files. Empty on a fresh install.
  2. A dev list of directories to scan for sub-folders containing a root marker (.git, Makefile, package.json, ...).

The dev default in snacks is lowercase (lua/snacks/picker/config/sources.lua:891):

M.projects = {
  finder = "recent_projects",
  dev = { "~/dev", "~/projects" },
  ...
}

Omarchy provisions ~/Projects — capital P:

  • bin/omarchy-provision-user:104 adds ~/Projects to ~/.config/gtk-3.0/bookmarks
  • bin/omarchy-upgrade-to-quattro:2003 runs mkdir -p ... "$HOME/Projects" and bookmarks it too

Omarchy neither creates ~/dev nor ~/projects, and Linux paths are case-sensitive, so the picker scans two directories that do not exist and finds nothing. omarchy-nvim ships no picker configuration, so nothing bridges the gap.

Side effect: fd writes [fd error]: Search path '/home/<user>/dev' is not a directory. to stderr on each invocation. It still exits 0, so this is cosmetic, but it means the "correct" fix isn't simply appending ~/Projects to the default list.

Reproduce

On a fresh install with repositories in ~/Projects and no file history:

$ ls -d ~/dev ~/projects
ls: cannot access '/home/user/dev': No such file or directory
ls: cannot access '/home/user/projects': No such file or directory

Open nvim, press p on the dashboard. Empty picker.

Confirming the default is what's in effect:

$ nvim --headless -c 'lua print(vim.inspect(require("snacks.picker.config").get({source="projects"}).dev))' -c 'qa!'
{ "~/dev", "~/projects" }

Environment

  • Omarchy 4.0.0.alpha
  • omarchy-nvim 2026.8.13-1
  • fd 10.4.2-2, xdg-user-dirs 0.20-1 (which is where PROJECTS=Projects in /etc/xdg/user-dirs.defaults comes from — upstream, not Omarchy)

Fix

omarchy-nvim should point the picker at the directory Omarchy actually creates. PR follows.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions