nixos-configuration/jrpotter/lang/c.nix

30 lines
563 B
Nix
Raw Normal View History

{ pkgs, ... }:
2023-11-22 18:14:10 +00:00
let
codelldb = pkgs.writeShellScriptBin "codelldb" ''
exec ${pkgs.vscode-extensions.vadimcn.vscode-lldb}/share/vscode/extensions/vadimcn.vscode-lldb/adapter/codelldb "$@"
'';
in
{
home.packages = with pkgs; [
bear
clang
clang-tools
2023-11-22 18:14:10 +00:00
codelldb
gnumake
];
programs.neovim = {
nvim-dap = ''
require('init.c').nvim_dap()
'';
nvim-lspconfig = ''
require('init.c').nvim_lspconfig()
'';
};
xdg.configFile."nvim/after/ftplugin/c.lua".text = ''
require('init.dap').buffer_map()
'';
}