153 lines
4.1 KiB
Nix
153 lines
4.1 KiB
Nix
|
|
{
|
||
|
|
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;
|
||
|
|
};
|
||
|
|
}
|