utilyre / barbecue.nvim

Visual Studio Code inspired breadcrumbs plugin for the Neovim editor
MIT License
802 stars 35 forks source link

Allow using a function to exclude filetypes #109

Open ptn opened 5 months ago

ptn commented 5 months ago

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,