feat(neovim): enable dap

This commit is contained in:
oddlama 2024-03-13 17:31:37 +01:00
parent afa8e02c18
commit af91ba38a5
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
5 changed files with 102 additions and 89 deletions

View file

@ -1,4 +1,4 @@
{
{pkgs, ...}: {
programs.nixvim = {
files."ftplugin/nix.lua".extraConfigLua = ''
vim.opt_local.expandtab = true
@ -26,9 +26,6 @@
nixvimInjections = true;
};
# Show the current function / context in topmost line
treesitter-context.enable = true;
# Cargo.toml dependency completion
crates-nvim = {
enable = true;
@ -40,6 +37,21 @@
rustaceanvim = {
enable = true;
server.settings.files.excludeDirs = [".direnv"];
dap.autoloadConfigurations = true;
dap.adapter = let
code-lldb = pkgs.vscode-extensions.vadimcn.vscode-lldb;
in {
executable.command = "${code-lldb}/share/vscode/extensions/vadimcn.vscode-lldb/adapter/codelldb";
executable.args = [
"--liblldb"
"${code-lldb}/share/vscode/extensions/vadimcn.vscode-lldb/lldb/lib/liblldb.dylib"
"--port"
"31337"
];
type = "server";
port = "31337";
host = "127.0.0.1";
};
};
};
};