nixos/home/nixvim/plugins.nix
2025-12-08 16:03:46 +01:00

171 lines
5.8 KiB
Nix
Executable File
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
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" ];
};
};
alpha = {
enable = true;
settings.layout = [
{
type = "padding";
val = 20;
}
{
type = "text";
val = [
""
""
""
""
""
""
""
""
""
""
""
""
""
""
""
""
""
""
""
];
opts = {
position = "center";
hl = "Type";
};
}
{
type = "padding";
val = 2;
}
{
type = "group";
val = [
{
type = "button";
val = " new file ";
on_press.__raw = "function() vim.cmd[[ene]] end";
opts = {
position = "center";
hl = "Keyword";
};
}
{
type = "padding";
val = 2;
}
{
type = "button";
val = " search files ";
on_press.__raw = "function() vim.cmd[[Telescope find_files]] end";
opts = {
position = "center";
hl = "Keyword";
};
}
{
type = "padding";
val = 2;
}
{
type = "button";
val = " live grep ";
on_press.__raw = "function() vim.cmd[[Telescope live_grep]] end";
opts = {
position = "center";
hl = "Keyword";
};
}
{
type = "padding";
val = 2;
}
{
type = "button";
val = " quit neovim ";
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 = {
find_command = [
"fd"
"--unrestricted"
"--no-ignore"
];
};
};
defaults = {
sorting_strategy = "ascending";
selection_caret = "> ";
};
};
keymaps = {
"<leader>fg" = "live_grep";
"<leader>ff" = "find_files";
};
};
lualine = {
enable = true;
settings = {
options = {
section_separators = {
left = "";
right = "";
a = "";
b = "";
c = "";
x = "";
y = "";
z = "";
};
};
sections = {
lualine_a = [ "mode" ];
lualine_b = [ "branch" ];
lualine_c = [ "filename" ];
lualine_x = [
"diagnostics"
"filetype"
];
lualine_y = [ "progress" ];
lualine_z = [ "location" ];
};
};
};
bufferline.enable = true;
web-devicons.enable = true;
};
}