Create wrapper directly to codelldb plugin.
parent
af9f2f6b10
commit
4bda4b8385
|
@ -2,14 +2,16 @@
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
clang-tools
|
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 = {
|
programs.neovim = {
|
||||||
nvim-dap = ''
|
nvim-dap = ''
|
||||||
require('init.c').nvim_dap({
|
require('init.c').nvim_dap()
|
||||||
command = '${pkgs.vscode-extensions.vadimcn.vscode-lldb}/share/vscode/extensions/vadimcn.vscode-lldb/adapter/codelldb'
|
|
||||||
})
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nvim-lspconfig = ''
|
nvim-lspconfig = ''
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
local M = {}
|
local M = {}
|
||||||
|
|
||||||
function M.nvim_dap(options)
|
function M.nvim_dap()
|
||||||
local dap = require('dap')
|
local dap = require('dap')
|
||||||
local key = 'codelldb'
|
local key = 'codelldb'
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ function M.nvim_dap(options)
|
||||||
type = 'server',
|
type = 'server',
|
||||||
port = '${port}',
|
port = '${port}',
|
||||||
executable = {
|
executable = {
|
||||||
command = options.command,
|
command = 'codelldb',
|
||||||
args = {'--port', '${port}'},
|
args = {'--port', '${port}'},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue