Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support overriding filetypes for adapters #29

Merged
merged 3 commits into from
Dec 20, 2022
Merged

feat: support overriding filetypes for adapters #29

merged 3 commits into from
Dec 20, 2022

Conversation

chomosuke
Copy link
Contributor

@chomosuke chomosuke commented Dec 19, 2022

First of all, thank you for this plugin, it greatly reduced my config size.

Use case:
I used simrat39/rust-tools.nvim and would like it to configure my dap instead of mason-nvim-dap.nvim.

Solution:
This PR allow me to do things like:

require('mason-nvim-dap').setup {
  automatic_setup = { filetypes = { codelldb = { 'c', 'cpp' } } },
}

This way I don't have to override the entire handler for codelldb and still let mason-nvim-dap.nvim configure c and cpp for me.

@jay-babu jay-babu self-requested a review December 19, 2022 20:38
@jay-babu jay-babu merged commit d6cb770 into jay-babu:main Dec 20, 2022
@chomosuke chomosuke deleted the override-filetypes branch December 20, 2022 17:31
This was referenced Apr 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants