diff --git a/jrpotter/neovim/lang/c.nix b/jrpotter/neovim/lang/c.nix index 21a469b..b8a7f77 100644 --- a/jrpotter/neovim/lang/c.nix +++ b/jrpotter/neovim/lang/c.nix @@ -2,14 +2,16 @@ { home.packages = with pkgs; [ clang-tools - vscode-extensions.vadimcn.vscode-lldb + (writeShellScriptBin "codelldb" '' + #!/usr/bin/env bash + + exec ${vscode-extensions.vadimcn.vscode-lldb}/share/vscode/extensions/vadimcn.vscode-lldb/adapter/codelldb "$@" + '') ]; programs.neovim = { nvim-dap = '' - require('init.c').nvim_dap({ - command = '${pkgs.vscode-extensions.vadimcn.vscode-lldb}/share/vscode/extensions/vadimcn.vscode-lldb/adapter/codelldb' - }) + require('init.c').nvim_dap() ''; nvim-lspconfig = '' diff --git a/jrpotter/neovim/lua/init/c.lua b/jrpotter/neovim/lua/init/c.lua index a87a040..3363f93 100644 --- a/jrpotter/neovim/lua/init/c.lua +++ b/jrpotter/neovim/lua/init/c.lua @@ -1,6 +1,6 @@ local M = {} -function M.nvim_dap(options) +function M.nvim_dap() local dap = require('dap') local key = 'codelldb' @@ -8,7 +8,7 @@ function M.nvim_dap(options) type = 'server', port = '${port}', executable = { - command = options.command, + command = 'codelldb', args = {'--port', '${port}'}, }, }