practicalli / practicalli/nvim-astro

Snacks: ignore file patterns in picker

Open
#54 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

good first issue
Dominant language
Lua
Stars
13
Forks
11
PR merge metrics
No merged PRs in 30d

Description

Example of adding ignore patterns to the snacks picker

Note that .gitignore patterns should be respected (to test)

Example also arranges picker verically

return {
  "folke/snacks.nvim",
  opts = {
    picker = {
      layout = {
        preset = "vertical",
      },
      files = {

        exclude = {
          "^node_modules/",
          "^node_",
          "^.git/",
          "^target/",
          "^build/",
          "^dist/",
          "^vendor/",
          "^__pycache__/",
        },
      },
    },
  },
}

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the repository's Snacks picker configuration and review how its files and layout options are currently defined. Add the requested ignore patterns so picker results respect the listed exclusions and verify the vertical layout example behaves as intended.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua, neovim
Domain
tooling
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.