diff --git a/neovim/dap.lua b/neovim/dap.lua index a36d4ee..c7331e7 100644 --- a/neovim/dap.lua +++ b/neovim/dap.lua @@ -1,6 +1,26 @@ local dap = require("dap") local dapui = require("dapui") +dap.adapters.lldb = { + type = "executable", + command = "lldb-dap", + name = "lldb", +} + +dap.configurations.cpp = { + { + name = "Launch", + type = "lldb", + request = "launch", + program = function() + return vim.fn.input("Path to executable: ", vim.fn.getcwd() .. "/", "file") + end, + cwd = "${workspaceFolder}", + stopOnEntry = false, + args = {}, + }, +} + dapui.setup() vim.fn.sign_define("DapBreakpoint", { text = "🔴", texthl = "", linehl = "", numhl = "" }) diff --git a/neovim/default.nix b/neovim/default.nix index 92f391a..b23411f 100644 --- a/neovim/default.nix +++ b/neovim/default.nix @@ -1,8 +1,5 @@ { pkgs, theme, vimwikiPath, ... }: { - # symlink for a stable path - home.file.".vscode-extensions/vscode-lldb".source = pkgs.vscode-extensions.vadimcn.vscode-lldb; - programs = { neovim = { enable = true;