simrat39 / rust-tools.nvim

Tools for better development in rust using neovim's builtin lsp
MIT License
2.17k stars 158 forks source link

Allow debugging adapter to not be set #317

Closed AlexSWall closed 1 year ago

AlexSWall commented 1 year ago

Currently, on running require('rust-tools').setup(), the dap.adapters.rt_lldb entry is always written to.

It would be nice to be able to configure this elsewhere by passing in false to the dap.adapter entry of setup (or similar), e.g. require('rust-tools').setup({ dap = { adapter = false } }).

The reason for this is that I want to do my DAP configuration all in one file, but this forces me to do my configuration for Rust with my LSP setup. As if I put my DAP configuration elsewhere, a race condition occurs.