nvim-telescope / telescope-dap.nvim

Integration for nvim-dap with telescope.nvim
MIT License
323 stars 23 forks source link

feat: add language-filter option #20

Closed JRasmusBm closed 1 year ago

JRasmusBm commented 1 year ago

Why is the change needed?

I define similar configuration for a bunch of similar filetypes. This leads to duplicates in the configuration list.

How is the need addressed?

Support a language_filter option that can be used as follows:

  require("telescope").extensions.dap.configurations {
    language_filter = function(lang)
      return lang == vim.bo.filetype
    end,
  }

Side-effects of the changes:

Conni2461 commented 1 year ago

thanks :)