nixos/home/nixvim/plugins.nix

207 lines
6.6 KiB
Nix
Raw Normal View History

{ lib, ... }:
2025-12-05 11:59:27 +01:00
{
programs.nixvim.plugins = {
neocord.enable = true;
colorizer.enable = true;
nvim-autopairs.enable = true;
treesitter = {
enable = true;
settings = {
highlighting.enable = true;
auto_install = true;
ignore_install = [ "ipkg" ];
};
};
render-markdown = {
enable = true;
settings = {
bullet = {
icons = [
" "
" "
" "
];
right_pad = 1;
};
code = {
above = " ";
below = " ";
border = "thick";
language_pad = 2;
left_pad = 2;
position = "right";
right_pad = 2;
sign = true;
width = "block";
};
heading = {
border = true;
position = "inline";
sign = false;
width = "full";
};
render_modes = true;
signs = {
enabled = true;
};
};
};
2025-12-05 11:59:27 +01:00
alpha = {
enable = true;
settings.layout = [
{
type = "padding";
val = 20;
}
{
type = "text";
val = [
2025-12-08 16:03:46 +01:00
""
""
""
""
""
""
""
""
""
""
""
""
""
""
""
""
""
""
""
2025-12-05 11:59:27 +01:00
];
opts = {
position = "center";
hl = "Type";
};
}
{
type = "padding";
val = 2;
}
{
type = "group";
val = [
{
type = "button";
2025-12-08 16:03:46 +01:00
val = " new file ";
2025-12-05 11:59:27 +01:00
on_press.__raw = "function() vim.cmd[[ene]] end";
opts = {
position = "center";
hl = "Keyword";
};
}
{
type = "padding";
val = 2;
}
{
type = "button";
2025-12-08 16:03:46 +01:00
val = " search files ";
2025-12-05 11:59:27 +01:00
on_press.__raw = "function() vim.cmd[[Telescope find_files]] end";
opts = {
position = "center";
hl = "Keyword";
};
}
{
type = "padding";
val = 2;
}
{
type = "button";
2025-12-08 16:03:46 +01:00
val = " live grep ";
2025-12-05 11:59:27 +01:00
on_press.__raw = "function() vim.cmd[[Telescope live_grep]] end";
opts = {
position = "center";
hl = "Keyword";
};
}
{
type = "padding";
val = 2;
}
{
type = "button";
2025-12-08 16:03:46 +01:00
val = " quit neovim ";
2025-12-05 11:59:27 +01:00
on_press.__raw = "function() vim.cmd[[qa]] end";
opts = {
position = "center";
hl = "Keyword";
};
}
];
opts = {
position = "center";
hl = "Keyword";
};
}
];
};
nvim-tree.enable = true;
telescope = {
enable = true;
settings = {
pickers = {
find_files = {
2025-12-08 16:03:46 +01:00
find_command = [
"fd"
"--unrestricted"
"--no-ignore"
];
2025-12-05 11:59:27 +01:00
};
};
defaults = {
sorting_strategy = "ascending";
selection_caret = "> ";
};
};
keymaps = {
"<leader>fg" = "live_grep";
"<leader>ff" = "find_files";
};
};
lualine = {
enable = true;
settings = {
options = {
globalstatus = true;
2025-12-05 11:59:27 +01:00
section_separators = {
left = "";
right = "";
a = "";
b = "";
c = "";
x = "";
y = "";
z = "";
};
};
sections = {
lualine_a = [ "mode" ];
lualine_b = [ "branch" ];
lualine_c = [ "filename" ];
2025-12-08 16:03:46 +01:00
lualine_x = [
"diagnostics"
"filetype"
];
2025-12-05 11:59:27 +01:00
lualine_y = [ "progress" ];
lualine_z = [ "location" ];
};
};
};
bufferline.enable = true;
web-devicons.enable = true;
};
}