split nixvim config into multiple files
This commit is contained in:
parent
e4cefff988
commit
831b3fd924
7 changed files with 106 additions and 96 deletions
|
|
@ -16,7 +16,6 @@
|
||||||
./services/pipewire.nix
|
./services/pipewire.nix
|
||||||
./services/ly.nix
|
./services/ly.nix
|
||||||
./stylix/stylix.nix
|
./stylix/stylix.nix
|
||||||
./easyroam.nix
|
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.loader.systemd-boot = {
|
boot.loader.systemd-boot = {
|
||||||
|
|
|
||||||
|
|
@ -1,95 +0,0 @@
|
||||||
{
|
|
||||||
programs.nixvim = {
|
|
||||||
plugins = {
|
|
||||||
lspconfig.enable = true;
|
|
||||||
web-devicons.enable = true;
|
|
||||||
blink-cmp = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
blink-indent = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
toggleterm = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
size = 30;
|
|
||||||
direction = "horizontal";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
cord = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
display = {
|
|
||||||
theme = "atom";
|
|
||||||
};
|
|
||||||
editor = {
|
|
||||||
tooltip = "ur gay :3";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
barbar = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
icons = {
|
|
||||||
buffer_index = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
lualine = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
extensions = [ "toggleterm" ];
|
|
||||||
options = {
|
|
||||||
section_separators = {
|
|
||||||
left = "▎";
|
|
||||||
right = "▕";
|
|
||||||
};
|
|
||||||
component_separators = {
|
|
||||||
left = "";
|
|
||||||
right = "";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
inactive_sections = {
|
|
||||||
lualine_a = [
|
|
||||||
"mode"
|
|
||||||
];
|
|
||||||
lualine_b = [
|
|
||||||
"filename"
|
|
||||||
"filetype"
|
|
||||||
];
|
|
||||||
lualine_c = [
|
|
||||||
"diagnostics"
|
|
||||||
];
|
|
||||||
lualine_x = [
|
|
||||||
"lsp_status"
|
|
||||||
];
|
|
||||||
lualine_y = [ ];
|
|
||||||
lualine_z = [
|
|
||||||
"location"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
sections = {
|
|
||||||
lualine_a = [
|
|
||||||
"mode"
|
|
||||||
];
|
|
||||||
lualine_b = [
|
|
||||||
"filename"
|
|
||||||
"filetype"
|
|
||||||
];
|
|
||||||
lualine_c = [
|
|
||||||
"diagnostics"
|
|
||||||
];
|
|
||||||
lualine_x = [
|
|
||||||
"lsp_status"
|
|
||||||
];
|
|
||||||
lualine_y = [ ];
|
|
||||||
lualine_z = [
|
|
||||||
"location"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
|
||||||
10
nixos/nixvim/plugins/barbar.nix
Normal file
10
nixos/nixvim/plugins/barbar.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
{
|
||||||
|
barbar = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
icons = {
|
||||||
|
buffer_index = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
13
nixos/nixvim/plugins/cord.nix
Normal file
13
nixos/nixvim/plugins/cord.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
{
|
||||||
|
cord = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
display = {
|
||||||
|
theme = "atom";
|
||||||
|
};
|
||||||
|
editor = {
|
||||||
|
tooltip = "ur gay :3";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
57
nixos/nixvim/plugins/lualine.nix
Normal file
57
nixos/nixvim/plugins/lualine.nix
Normal file
|
|
@ -0,0 +1,57 @@
|
||||||
|
{
|
||||||
|
lualine = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
extensions = [ "toggleterm" ];
|
||||||
|
options = {
|
||||||
|
section_separators = {
|
||||||
|
left = "▎";
|
||||||
|
right = "▕";
|
||||||
|
};
|
||||||
|
component_separators = {
|
||||||
|
left = "";
|
||||||
|
right = "";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
inactive_sections = {
|
||||||
|
lualine_a = [
|
||||||
|
"mode"
|
||||||
|
];
|
||||||
|
lualine_b = [
|
||||||
|
"filename"
|
||||||
|
"filetype"
|
||||||
|
];
|
||||||
|
lualine_c = [
|
||||||
|
"diagnostics"
|
||||||
|
];
|
||||||
|
lualine_x = [
|
||||||
|
"lsp_status"
|
||||||
|
];
|
||||||
|
lualine_y = [ ];
|
||||||
|
lualine_z = [
|
||||||
|
"location"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
sections = {
|
||||||
|
lualine_a = [
|
||||||
|
"mode"
|
||||||
|
];
|
||||||
|
lualine_b = [
|
||||||
|
"filename"
|
||||||
|
"filetype"
|
||||||
|
];
|
||||||
|
lualine_c = [
|
||||||
|
"diagnostics"
|
||||||
|
];
|
||||||
|
lualine_x = [
|
||||||
|
"lsp_status"
|
||||||
|
];
|
||||||
|
lualine_y = [ ];
|
||||||
|
lualine_z = [
|
||||||
|
"location"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
17
nixos/nixvim/plugins/plugins.nix
Normal file
17
nixos/nixvim/plugins/plugins.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
{
|
||||||
|
programs.nixvim = {
|
||||||
|
plugins = {
|
||||||
|
imports = [
|
||||||
|
./barbar.nix
|
||||||
|
./cord.nix
|
||||||
|
./lualine.nix
|
||||||
|
./toggleterm.nix
|
||||||
|
];
|
||||||
|
lspconfig.enable = true;
|
||||||
|
web-devicons.enable = true;
|
||||||
|
blink-cmp.enable = true;
|
||||||
|
blink-indent.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
9
nixos/nixvim/plugins/toggleterm.nix
Normal file
9
nixos/nixvim/plugins/toggleterm.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
{
|
||||||
|
toggleterm = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
size = 30;
|
||||||
|
direction = "horizontal";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue