Big refactor WIP

This commit is contained in:
2022-04-15 16:40:32 +01:00
parent b1b692dbdf
commit ec73d821aa
35 changed files with 107 additions and 206 deletions

View File

@@ -0,0 +1,88 @@
{ pkgs, ... }:
{
programs.alacritty = {
enable = false;
settings = {
font = {
normal = {
family = "Iosevka";
style = "Regular";
};
};
cursor = {
style= {
shape = "Underline";
};
};
colors = {
primary = {
background = "0x282a36";
foreground = "0xf8f8f2";
};
cursor = {
text = "CellBackground";
cursor = "CellForeground";
};
vi_mode_cursor = {
text = "CellBackground";
cursor = "CellForeground";
};
search = {
matches = {
foreground = "0x44475a";
background = "0x50fa7b";
};
focused_match = {
foreground = "0x44475a";
background = "0xffb86c";
};
bar = {
background = "0x282a36";
foreground = "0xf8f8f2";
};
};
line_indicator = {
foreground = "None";
background = "None";
};
selection = {
text = "CellForeground";
background = "0x44475a";
};
normal = {
black = "0x000000";
red = "0xff5555";
green = "0x50fa7b";
yellow = "0xf1fa8c";
blue = "0xbd93f9";
magenta = "0xff79c6";
cyan = "0x8be9fd";
white = "0xbfbfbf";
};
bright = {
black = "0x4d4d4d";
red = "0xff6e67";
green = "0x5af78e";
yellow = "0xf4f99d";
blue = "0xcaa9fa";
magenta = "0xff92d0";
cyan = "0x9aedfe";
white = "0xe6e6e6";
};
dim = {
black = "0x14151b";
red = "0xff2222";
green = "0x1ef956";
yellow = "0xebf85b";
blue = "0x4d5b86";
magenta = "0xff46b0";
cyan = "0x59dffc";
white = "0xe6e6d1";
};
};
};
};
}

View File

@@ -0,0 +1,8 @@
{
imports = [
./alacritty
./helix
./kitty
./neovim
];
}

View File

@@ -0,0 +1,4 @@
theme = "dracula"
[editor]
mouse = false

View File

@@ -0,0 +1,54 @@
# Author : Sebastian Zivota <loewenheim@mailbox.org>
"comment" = { fg = "comment" }
"constant" = { fg = "purple" }
"constant.character.escape" = { fg = "pink" }
"function" = { fg = "green" }
"keyword" = { fg = "pink" }
"operator" = { fg = "pink" }
"punctuation" = { fg = "foreground" }
"string" = { fg = "yellow" }
"string.regexp" = { fg = "red" }
"tag" = { fg = "pink" }
"type" = { fg = "cyan", modifiers = ["italic"] }
"type.enum.variant" = { fg = "foreground", modifiers = ["italic"] }
"variable" = { fg = "foreground" }
"variable.builtin" = { fg = "cyan", modifiers = ["italic"] }
"variable.parameter" = { fg ="orange", modifiers = ["italic"] }
"diff.plus" = { fg = "green" }
"diff.delta" = { fg = "orange" }
"diff.minus" = { fg = "red" }
"ui.background" = { fg = "foreground", bg = "background" }
"ui.cursor" = { fg = "background", bg = "orange", modifiers = ["dim"] }
"ui.cursor.match" = { fg = "green", modifiers = ["underlined"] }
"ui.cursor.primary" = { fg = "background", bg = "cyan", modifier = ["dim"] }
"ui.help" = { fg = "foreground", bg = "background_dark" }
"ui.linenr" = { fg = "comment" }
"ui.linenr.selected" = { fg = "foreground" }
"ui.menu" = { fg = "foreground", bg = "background_dark" }
"ui.menu.selected" = { fg = "cyan", bg = "background_dark" }
"ui.popup" = { fg = "foreground", bg = "background_dark" }
"ui.selection" = { fg = "background", bg = "purple", modifiers = ["dim"] }
"ui.selection.primary" = { fg = "background", bg = "pink" }
"ui.statusline" = { fg = "foreground", bg = "background_dark" }
"ui.statusline.inactive" = { fg = "comment", bg = "background_dark" }
"ui.text" = { fg = "foreground" }
"ui.text.focus" = { fg = "cyan" }
"ui.window" = { fg = "foreground" }
"error" = { fg = "red" }
"warning" = { fg = "cyan" }
[palette]
background = "#282a36"
background_dark = "#21222c"
foreground = "#f8f8f2"
comment = "#6272a4"
red = "#ff5555"
orange = "#ffb86c"
yellow = "#f1fa8c"
green = "#50fa7b"
purple = "#bd93f9"
cyan = "#8be9fd"
pink = "#ff79c6"

View File

@@ -0,0 +1,7 @@
{...}:
{
home.file.".config/helix" = {
source = ./config;
recursive = true;
};
}

View File

@@ -0,0 +1,72 @@
{ pkgs, ... }:
{
programs.kitty = {
enable = true;
font = {
package = pkgs.iosevka;
name = "Iosevka Nerd Font Complete";
};
settings = {
"cursor_shape" = "underline";
"bold_font" = "Iosevka Bold Nerd Font Complete";
"disable_ligatures" = "always";
"enable_audio_bell" = "no";
"foreground" = "#f8f8f2";
"background" = "#282a36";
"selection_foreground" = "#ffffff";
"selection_background" = "#44475a";
"url_color" = "#8be9fd";
# black
"color0" = "#21222c";
"color8" = "#6272a4";
# red
"color1" = "#ff5555";
"color9" = "#ff6e6e";
# green
"color2" = "#50fa7b";
"color10" = "#69ff94";
# yellow
"color3" = "#f1fa8c";
"color11" = "#ffffa5";
# blue
"color4" = "#bd93f9";
"color12" = "#d6acff";
# magenta
"color5" = "#ff79c6";
"color13" = "#ff92df";
# cyan
"color6" = "#8be9fd";
"color14" = "#a4ffff";
# white
"color7" = "#f8f8f2";
"color15" = "#ffffff";
# Cursor colors
"cursor" = "#f8f8f2";
"cursor_text_color" = "background";
# Tab bar colors
"active_tab_foreground" = "#282a36";
"active_tab_background" = "#f8f8f2";
"inactive_tab_foreground" = "#282a36";
"inactive_tab_background" = "#6272a4";
# Marks
"mark1_foreground" = "#282a36";
"mark1_background" = "#ff5555";
};
};
}

View File

@@ -0,0 +1,31 @@
{ pkgs, ... }:
{
programs.neovim = {
enable = true;
plugins = with pkgs.vimPlugins; [
(nvim-treesitter.withPlugins (
plugins: with plugins; [
#tree-sitter-nix
tree-sitter-go
tree-sitter-c
tree-sitter-rust
tree-sitter-vim
tree-sitter-lua
tree-sitter-python
tree-sitter-html
tree-sitter-json
tree-sitter-markdown
tree-sitter-javascript
tree-sitter-typescript
]
))
vim-nix
nvim-lspconfig
];
viAlias = true;
vimAlias = true;
};
}