about summary refs log tree commit diff
path: root/fnl/nvrc/packs/dap.fnl
blob: b17f7a35a63c17ede1cec85fd05ac83c4d74e6f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
(local dap (require :dap))

(set dap.adapters.lldb {:type :executable
                    :command "/home/zach/.nix-profile/bin/lldb-vscode"
                    :name :lldb})

(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 :>})