nixos-configuration/users/jrpotter/lang/cxx.nix

36 lines
661 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 = ''
2024-01-04 17:01:01 +00:00
require('cxx.init').nvim_dap()
'';
nvim-lspconfig = ''
2024-01-04 17:01:01 +00:00
require('cxx.init').nvim_lspconfig()
2023-11-26 12:52:46 +00:00
vim.filetype.add({
pattern = {
['.*%.h'] = 'c',
},
})
'';
};
xdg.configFile."nvim/after/ftplugin/c.lua".text = ''
2024-01-04 17:01:01 +00:00
require('utils.dap').buffer_map()
'';
}