Skip to content

ignore doesn't work for folke/snacks explorer #172

@domenicouni

Description

@domenicouni

In order to reproduce the issue:

1. Install the plugin
2. Install folke/snacks.nvim
3. Run `Snacks.explorer()`

Current config, as taken from the docs, works fine with neo-tree:

local ignore_filetypes = {
  "neo-tree",
  "neo-tree-popup",
  "notify",
  "TelescopePrompt",
  "snacks_picker_list",
  "snacks_picker_input",
}


vim.api.nvim_create_autocmd("FileType", {
  group = augroup,
  callback = function(_)
    if vim.tbl_contains(ignore_filetypes, vim.bo.filetype) then
      vim.b.focus_disable = true
    else
      vim.b.focus_disable = false
    end
  end,
  desc = "Disable focus autoresize for FileType",
})

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