refactor: run nixfmt-tree and deadnix

This commit is contained in:
2026-02-08 10:11:47 +01:00
parent 643dc4bae9
commit 96c865443e
18 changed files with 442 additions and 427 deletions

View File

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

View File

@@ -1,66 +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;
};
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

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

View File

@@ -1,27 +1,27 @@
{ pkgs, ... }:
{ ... }:
{
imports = [
./comment.nix
./dap.nix
./dashboard.nix
./fidget.nix
./guess-indent.nix
./lualine.nix
./snacks.nix
./telescope.nix
./treesitter.nix
./vimwiki.nix
];
imports = [
./comment.nix
./dap.nix
./dashboard.nix
./fidget.nix
./guess-indent.nix
./lualine.nix
./snacks.nix
./telescope.nix
./treesitter.nix
./vimwiki.nix
];
plugins = {
autoclose.enable = true;
bufferline.enable = true;
colorful-menu.enable = true;
gitsigns.enable = true;
nix-develop.enable = true;
nvim-surround.enable = true;
toggleterm.enable = true;
web-devicons.enable = true;
which-key.enable = true;
};
plugins = {
autoclose.enable = true;
bufferline.enable = true;
colorful-menu.enable = true;
gitsigns.enable = true;
nix-develop.enable = true;
nvim-surround.enable = true;
toggleterm.enable = true;
web-devicons.enable = true;
which-key.enable = true;
};
}

View File

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

View File

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

View File

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

View File

@@ -1,11 +1,11 @@
{ ... }:
{
plugins.snacks = {
enable = true;
settings = {
explorer = {
enabled = true;
};
};
};
plugins.snacks = {
enable = true;
settings = {
explorer = {
enabled = true;
};
};
};
}

View File

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

View File

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

View File

@@ -1,16 +1,16 @@
{ ... }:
{
plugins.vimwiki = {
enable = true;
settings = {
list = [
{
path = "$HOME/.vimwiki/";
template_path = "$HOME/.vimwiki/";
template_default = "default";
template_ext = "html";
}
];
};
};
plugins.vimwiki = {
enable = true;
settings = {
list = [
{
path = "$HOME/.vimwiki/";
template_path = "$HOME/.vimwiki/";
template_default = "default";
template_ext = "html";
}
];
};
};
}