mirror of
https://github.com/Superredstone/nixvim.git
synced 2026-03-07 20:18:07 +01:00
refactor: run nixfmt-tree and deadnix
This commit is contained in:
@@ -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>";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,20 +1,20 @@
|
||||
{ ... }:
|
||||
{
|
||||
plugins.dashboard = {
|
||||
enable = true;
|
||||
settings.config = {
|
||||
header = [
|
||||
" ███▄ █ ▓█████ ▒█████ ██▒ █▓ ██▓ ███▄ ▄███▓"
|
||||
" ██ ▀█ █ ▓█ ▀ ▒██▒ ██▒▓██░ █▒▓██▒▓██▒▀█▀ ██▒"
|
||||
"▓██ ▀█ ██▒▒███ ▒██░ ██▒ ▓██ █▒░▒██▒▓██ ▓██░"
|
||||
"▓██▒ ▐▌██▒▒▓█ ▄ ▒██ ██░ ▒██ █░░░██░▒██ ▒██ "
|
||||
"▒██░ ▓██░░▒████▒░ ████▓▒░ ▒▀█░ ░██░▒██▒ ░██▒"
|
||||
"░ ▒░ ▒ ▒ ░░ ▒░ ░░ ▒░▒░▒░ ░ ▐░ ░▓ ░ ▒░ ░ ░"
|
||||
"░ ░░ ░ ▒░ ░ ░ ░ ░ ▒ ▒░ ░ ░░ ▒ ░░ ░ ░"
|
||||
" ░ ░ ░ ░ ░ ░ ░ ▒ ░░ ▒ ░░ ░ "
|
||||
" ░ ░ ░ ░ ░ ░ ░ ░ "
|
||||
];
|
||||
footer = [ "Made with ❤️" ];
|
||||
};
|
||||
};
|
||||
plugins.dashboard = {
|
||||
enable = true;
|
||||
settings.config = {
|
||||
header = [
|
||||
" ███▄ █ ▓█████ ▒█████ ██▒ █▓ ██▓ ███▄ ▄███▓"
|
||||
" ██ ▀█ █ ▓█ ▀ ▒██▒ ██▒▓██░ █▒▓██▒▓██▒▀█▀ ██▒"
|
||||
"▓██ ▀█ ██▒▒███ ▒██░ ██▒ ▓██ █▒░▒██▒▓██ ▓██░"
|
||||
"▓██▒ ▐▌██▒▒▓█ ▄ ▒██ ██░ ▒██ █░░░██░▒██ ▒██ "
|
||||
"▒██░ ▓██░░▒████▒░ ████▓▒░ ▒▀█░ ░██░▒██▒ ░██▒"
|
||||
"░ ▒░ ▒ ▒ ░░ ▒░ ░░ ▒░▒░▒░ ░ ▐░ ░▓ ░ ▒░ ░ ░"
|
||||
"░ ░░ ░ ▒░ ░ ░ ░ ░ ▒ ▒░ ░ ░░ ▒ ░░ ░ ░"
|
||||
" ░ ░ ░ ░ ░ ░ ░ ▒ ░░ ▒ ░░ ░ "
|
||||
" ░ ░ ░ ░ ░ ░ ░ ░ "
|
||||
];
|
||||
footer = [ "Made with ❤️" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{ ... }:
|
||||
{ ... }:
|
||||
{
|
||||
plugins.guess-indent = {
|
||||
enable = true;
|
||||
};
|
||||
plugins.guess-indent = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{ ... }:
|
||||
{
|
||||
plugins.lualine = {
|
||||
enable = true;
|
||||
};
|
||||
plugins.lualine = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
{ ... }:
|
||||
{
|
||||
plugins.snacks = {
|
||||
enable = true;
|
||||
settings = {
|
||||
explorer = {
|
||||
enabled = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
plugins.snacks = {
|
||||
enable = true;
|
||||
settings = {
|
||||
explorer = {
|
||||
enabled = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
{ ... }:
|
||||
{
|
||||
plugins.treesitter = {
|
||||
enable = true;
|
||||
settings = {
|
||||
highlight = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
plugins.treesitter = {
|
||||
enable = true;
|
||||
settings = {
|
||||
highlight = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user