Skip to content
Discussion options

You must be logged in to vote
:lua Snacks.picker.treesitter({ layout = { preset = "left" } })
---@module 'snacks'

return {
  "folke/snacks.nvim",
  priority = 1000,
  lazy = false,
  ---@type snacks.Config
  opts = {
    picker = {
      sources = {
        treesitter = {
          fold_all = false,
          finder = function(opts, ctx)
            local next_items = require("snacks.picker.source.treesitter").symbols(opts, ctx) --[=[@as snacks.picker.finder.Item[]]=]
            local prev_items = ctx.picker:items()
            local ts_id = function(item)
              return vim.inspect({ item.name, item.depth, item.pos, item.end_pos })
            end
            for _, item in ipairs(next_items) do
              l…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ssteinbach
Comment options

Answer selected by ssteinbach
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants