Skip to content

Commit

Permalink
Use repl src filetype info when resolving configurations while within…
Browse files Browse the repository at this point in the history
… repl (#1438)

Addresses issue where setting dap.defaults[ft]autostart = "config" uses
"dap-repl" as filetype when attempting to start config from using repl
and there is no active session
  • Loading branch information
catgoose authored Jan 30, 2025
1 parent ead0de6 commit b4f27d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/dap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ end


providers.configs["dap.global"] = function(bufnr)
local filetype = vim.bo[bufnr].filetype
local filetype = vim.b["dap-srcft"] or vim.bo[bufnr].filetype
local configurations = M.configurations[filetype] or {}
assert(
islist(configurations),
Expand Down

0 comments on commit b4f27d4

Please sign in to comment.