Skip to content

I can't seem to use explorer layout when I set a general layout config in the pickers config #1448

Answered by drowning-cat
gaven140 asked this question in Q&A
Discussion options

You must be logged in to vote
vim.env.LAZY_STDPATH = '.repro'
load(vim.fn.system 'curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua')()

---@module 'snacks'

---@diagnostic disable-line: missing-fields
require('lazy.minit').repro {
  spec = {
    {
      'folke/snacks.nvim',
      ---@type snacks.Config
      opts = {
        picker = {
          enabled = true,
          layout = {
            -- The default layout for "telescopy" pickers, e.g. `files`, `commands`, ...
            preset = function()
              return vim.o.columns >= 120 and 'telescope' or 'vertical'
            end,
          },
          layouts = {
            telescope = {
	      -- Copy from https://github.com/folk…

Replies: 3 comments 9 replies

Comment options

You must be logged in to vote
1 reply
@drowning-cat
Comment options

Comment options

You must be logged in to vote
4 replies
@drowning-cat
Comment options

@gaven140
Comment options

@drowning-cat
Comment options

@gaven140
Comment options

Comment options

You must be logged in to vote
4 replies
@dpetka2001
Comment options

@drowning-cat
Comment options

Answer selected by gaven140
@gaven140
Comment options

@drowning-cat
Comment options

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