(local dap (require :dap))

(set dap.configurations.cpp [{:name :Launch
                         :type :lldb
                         :request :launch
                         :program (fn []
                  (vim.fn.input "Path to executable: " (.. (vim.fn.getcwd) "/")
                                :file))
                         :cwd "${workspaceFolder}"
                         :stopOnEntry false
                         :args {}
                         :runInTerminal false
                         :postRunCommands ["process handle -p true -s false -n false SIGWINCH"]}])

(set dap.configurations.c dap.configurations.cpp)
(set dap.configurations.rust dap.configurations.cpp)

(vim.fn.sign_define :DapStopped {:text :>})