From d435b5ca68a3348b120140a08129c8c17ee5c30a Mon Sep 17 00:00:00 2001 From: sefidel Date: Sun, 8 May 2022 21:12:03 +0900 Subject: [WIP]: nvim-dap --- fnl/nvrc/packs/dap.fnl | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 fnl/nvrc/packs/dap.fnl (limited to 'fnl/nvrc/packs/dap.fnl') diff --git a/fnl/nvrc/packs/dap.fnl b/fnl/nvrc/packs/dap.fnl new file mode 100644 index 0000000..b17f7a3 --- /dev/null +++ b/fnl/nvrc/packs/dap.fnl @@ -0,0 +1,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 :>}) -- cgit 1.4.1