mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-16 10:05:13 -05:00
refactor: cleaned up nixos and home dirs
This commit is contained in:
parent
824a91d405
commit
e596e1c1b3
582 changed files with 2 additions and 22 deletions
44
modules/home/cli/development/editing/helix/config/languages.nix
Executable file
44
modules/home/cli/development/editing/helix/config/languages.nix
Executable file
|
@ -0,0 +1,44 @@
|
|||
{
|
||||
language = [
|
||||
{
|
||||
auto-format = true;
|
||||
formatter.command = "nixfmt";
|
||||
name = "nix";
|
||||
}
|
||||
{
|
||||
auto-format = true;
|
||||
formatter.command = "cssfmt";
|
||||
name = "css";
|
||||
}
|
||||
{
|
||||
auto-format = true;
|
||||
language-servers = [
|
||||
"elm-language-server"
|
||||
];
|
||||
name = "elm";
|
||||
}
|
||||
{
|
||||
auto-format = true;
|
||||
formatter.command = "haskell";
|
||||
name = "haskell";
|
||||
}
|
||||
{
|
||||
auto-format = true;
|
||||
formatter.command = "yamlfmt";
|
||||
name = "yaml";
|
||||
}
|
||||
{
|
||||
auto-format = true;
|
||||
formatter.command = "yuck";
|
||||
name = "yuck";
|
||||
}
|
||||
];
|
||||
language-server = {
|
||||
elm-language-server = {
|
||||
config.elmLS = {
|
||||
disableElmLSDiagnostics = true;
|
||||
elmReviewDiagnostics = "warning";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
62
modules/home/cli/development/editing/helix/config/settings.nix
Executable file
62
modules/home/cli/development/editing/helix/config/settings.nix
Executable file
|
@ -0,0 +1,62 @@
|
|||
{
|
||||
editor = {
|
||||
mouse = true;
|
||||
auto-format = true;
|
||||
soft-wrap.enable = true;
|
||||
auto-save = true;
|
||||
line-number = "relative";
|
||||
cursorline = true;
|
||||
indent-guides = {
|
||||
character = "╎";
|
||||
skip-levels = 1;
|
||||
render = true;
|
||||
};
|
||||
lsp = {
|
||||
display-messages = true;
|
||||
display-inlay-hints = true;
|
||||
};
|
||||
};
|
||||
|
||||
keys = {
|
||||
normal = {
|
||||
f = ":format";
|
||||
tab = "indent";
|
||||
S-tab = "unindent";
|
||||
ret = [
|
||||
"add_newline_below"
|
||||
"move_line_down"
|
||||
];
|
||||
S-ret = [
|
||||
"add_newline_above"
|
||||
"move_line_up"
|
||||
];
|
||||
S-up = [
|
||||
"extend_to_line_bounds"
|
||||
"delete_selection"
|
||||
"move_line_up"
|
||||
"paste_before"
|
||||
];
|
||||
|
||||
S-down = [
|
||||
"extend_to_line_bounds"
|
||||
"delete_selection"
|
||||
"paste_after"
|
||||
];
|
||||
S-g = [
|
||||
":write-all"
|
||||
":new"
|
||||
":insert-output lazygit"
|
||||
":buffer-close!"
|
||||
":redraw"
|
||||
":reload-all"
|
||||
];
|
||||
Y = "yank_main_selection_to_primary_clipboard";
|
||||
R = "replace_selections_with_primary_clipboard";
|
||||
space = {
|
||||
q = ":q";
|
||||
w = ":w";
|
||||
};
|
||||
};
|
||||
};
|
||||
theme = "catppuccin_macchiato";
|
||||
}
|
19
modules/home/cli/development/editing/helix/default.nix
Executable file
19
modules/home/cli/development/editing/helix/default.nix
Executable file
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
pkgs,
|
||||
flake,
|
||||
...
|
||||
}:
|
||||
{
|
||||
programs.helix =
|
||||
let
|
||||
configPath = ./config;
|
||||
settingsPath = import (configPath + /settings.nix);
|
||||
languagesPath = import (configPath + /languages.nix);
|
||||
in
|
||||
{
|
||||
enable = true;
|
||||
package = flake.inputs.helix.packages.${pkgs.system}.default;
|
||||
languages = languagesPath;
|
||||
settings = settingsPath;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue