barbecue.nvim icon indicating copy to clipboard operation
barbecue.nvim copied to clipboard

Allow using a function to exclude filetypes

Open ptn opened this issue 1 year ago • 0 comments

I use this because it has allowed me to change my config from this:

      exclude_filetypes = {
        "netrw",
        "toggleterm",
        "NeogitCommitMessage",
        "NeogitCommitView",
        "NeogitDiffView",
        "NeogitHelpPopup",
        "NeogitLogPopup",
        -- ...bunch more Neogit buffers
      },

to this:

      exclude_filetype_fn = function(filetype)
        return string.find(filetype, "Neogit")
      end,

ptn avatar May 19 '24 20:05 ptn