207 lines
6.6 KiB
Nix
Executable File
207 lines
6.6 KiB
Nix
Executable File
{ lib, ... }:
|
||
{
|
||
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;
|
||
};
|
||
};
|
||
|
||
};
|
||
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 = {
|
||
globalstatus = true;
|
||
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;
|
||
};
|
||
}
|