feat: first commit

This commit is contained in:
Patrick
2025-08-09 09:40:16 +02:00
committed by Superredstone
commit 0b4617b552
20 changed files with 1389 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
{ ... }:
{
plugins.comment = {
enable = true;
settings.toggler = {
block = "<C-x>";
line = "<C-c>";
};
};
}

66
config/plugins/dap.nix Normal file
View File

@@ -0,0 +1,66 @@
{ pkgs, ... }:
{
plugins = {
dap = {
enable = true;
adapters = {
executables = {
gdb = {
command = "gdb";
args = [
"-i"
"dap"
];
};
lldb = {
command = "lldb";
};
};
servers = {
codelldb = {
port = 13000;
executable = {
command = "${pkgs.vscode-extensions.vadimcn.vscode-lldb}/share/vscode/extensions/vadimcn.vscode-lldb/adapter/codelldb";
args = [
"--port"
"13000"
];
};
};
};
};
configurations = {
cpp = [
{
name = "Launch GDB";
type = "gdb";
request = "launch";
program.__raw = ''
function()
return vim.fn.input("Path to executable: ", vim.fn.getcwd() .. "/", "file")
end'';
}
{
name = "Launch LLDB";
type = "lldb";
request = "launch";
program.__raw = ''
function()
return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file')
end'';
}
{
name = "Launch CodeLLDB";
type = "codelldb";
request = "launch";
program.__raw = ''
function()
return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file')
end'';
}
];
};
};
dap-ui.enable = true;
};
}

View File

@@ -0,0 +1,20 @@
{ ... }:
{
plugins.dashboard = {
enable = true;
settings.config = {
header = [
" "
" "
" "
" "
" "
" "
" "
" "
" "
];
footer = [ "Made with " ];
};
};
}

View File

@@ -0,0 +1,25 @@
{ pkgs, ... }:
{
imports = [
./comment.nix
./dap.nix
./dashboard.nix
./fidget.nix
./guess-indent.nix
./lualine.nix
./neotree.nix
./telescope.nix
./treesitter.nix
];
plugins = {
web-devicons.enable = true;
bufferline.enable = true;
toggleterm.enable = true;
gitsigns.enable = true;
which-key.enable = true;
autoclose.enable = true;
markview.enable = true;
nvim-surround.enable = true;
};
}

10
config/plugins/fidget.nix Normal file
View File

@@ -0,0 +1,10 @@
{
plugins.fidget = {
enable = true;
settings.progress = {
suppress_on_insert = true;
ignore_done_already = true;
poll_rate = 1;
};
};
}

View File

@@ -0,0 +1,6 @@
{ ... }:
{
plugins.guess-indent = {
enable = true;
};
}

View File

@@ -0,0 +1,6 @@
{ ... }:
{
plugins.lualine = {
enable = true;
};
}

View File

@@ -0,0 +1,9 @@
{ ... }:
{
plugins.neo-tree = {
enable = true;
window = {
width = 30;
};
};
}

View File

@@ -0,0 +1,10 @@
{ ... }:
{
plugins.telescope = {
enable = true;
keymaps = {
"<Space>f" = "find_files";
"<Space>g" = "live_grep";
};
};
}

View File

@@ -0,0 +1,11 @@
{ ... }:
{
plugins.treesitter = {
enable = true;
settings = {
highlight = {
enable = true;
};
};
};
}