refactor: run nixfmt-tree and deadnix

This commit is contained in:
Superredstone committed 2026-02-08 10:16:55 +01:00
1 parent 643dc4bae9
commit 96c865443e
18 files changed
+442 -427

No files matched your search

+10 -10
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>";
};
};
};
}
+63 -63
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;
};
}
+17 -17
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 ❤️" ];
};
};
}
+24 -24
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;
};
}
+8 -8
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;
};
};
}
+4 -4
View File
@@ -1,6 +1,6 @@
{ ... }:
{ ... }:
{
plugins.guess-indent = {
enable = true;
};
plugins.guess-indent = {
enable = true;
};
}
+3 -3
View File
@@ -1,6 +1,6 @@
{ ... }:
{
plugins.lualine = {
enable = true;
};
plugins.lualine = {
enable = true;
};
}
+8 -8
View File
@@ -1,11 +1,11 @@
{ ... }:
{
plugins.snacks = {
enable = true;
settings = {
explorer = {
enabled = true;
};
};
};
plugins.snacks = {
enable = true;
settings = {
explorer = {
enabled = true;
};
};
};
}
+8 -8
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";
};
};
}
+8 -8
View File
@@ -1,11 +1,11 @@
{ ... }:
{
plugins.treesitter = {
enable = true;
settings = {
highlight = {
enable = true;
};
};
};
plugins.treesitter = {
enable = true;
settings = {
highlight = {
enable = true;
};
};
};
}
+13 -13
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";
}
];
};
};
}