Skip to content

Conversation

@ALameLlama
Copy link

@ALameLlama ALameLlama commented Oct 6, 2025

Closes #72

Description

This adds support for the native nvim api vim.ui.select as a fall back if you don't have telescope installed. this should cover the majority of the pickers such as snacks, fzf and mini.

I created the picker-util since there was a lot of code duplication between telescope.lua and picker.lua, if you're not happy with this change I can revert it to my first commit which just added the basic fall back

Note

I've not done extensive testing with these changes, I was using a lazynvim repro.lua and enable/disable telescope/snacks and building a zig project and it seemed to be working fine

-- save as repro.lua
-- run with nvim -u repro.lua
-- DO NOT change the paths
local root = vim.fn.fnamemodify("./.repro", ":p")

-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "runtime", "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
  -- stylua: ignore
  vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", "--branch=stable",
    lazypath })
end
vim.opt.rtp:prepend(vim.env.LAZY or lazypath)

-- install plugins
local plugins = {
  { "AstroNvim/AstroNvim",             import = "astronvim.plugins" },
  { "AstroNvim/astrocommunity" },
  { import = "astrocommunity.pack.zig" },
  -- { import = "astrocommunity.fuzzy-finder.telescope-nvim" }, -- Enable this to swap to telescope instead of snames

  -- Add your local compiler.nvim for testing
  {
    dir = "/home/nciechanowski/Projects/compiler.nvim",
    name = "compiler.nvim",
    dependencies = { "stevearc/overseer.nvim" },
    config = function()
      require("compiler").setup()
    end,
  },

  -- add any other plugins/customizations here
}
require("lazy").setup(plugins, {
  root = root .. "/plugins",
})

-- add anything else here (autocommands, vim.filetype, etc.)

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

Successfully merging this pull request may close these issues.

Add snacks support

1 participant