move helix as home module, provide option youthlic.programs.helix.
This commit is contained in:
parent
aa4a261a04
commit
445dfe6543
5 changed files with 63 additions and 20 deletions
|
|
@ -3,12 +3,12 @@
|
|||
config,
|
||||
rootPath,
|
||||
inputs,
|
||||
unixName,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
./starship
|
||||
./helix
|
||||
./fish
|
||||
./rime-ice.nix
|
||||
./firefox.nix
|
||||
|
|
@ -17,6 +17,9 @@
|
|||
./niri
|
||||
./zed.nix
|
||||
];
|
||||
|
||||
youthlic.programs.helix.enable = true;
|
||||
|
||||
xdg.userDirs = {
|
||||
enable = true;
|
||||
download = "${config.home.homeDirectory}/dls";
|
||||
|
|
@ -29,8 +32,8 @@
|
|||
desktop = "${config.home.homeDirectory}/dsk";
|
||||
createDirectories = true;
|
||||
};
|
||||
home.username = "david";
|
||||
home.homeDirectory = "/home/david";
|
||||
home.username = "${unixName}";
|
||||
home.homeDirectory = "/home/${unixName}";
|
||||
home.stateVersion = "24.11";
|
||||
programs.home-manager.enable = true;
|
||||
programs.git = {
|
||||
|
|
@ -61,13 +64,9 @@
|
|||
dust
|
||||
qq
|
||||
telegram-desktop
|
||||
taplo
|
||||
ghostty
|
||||
sops
|
||||
scrcpy
|
||||
markdown-oxide
|
||||
deno
|
||||
taplo
|
||||
ast-grep
|
||||
lazygit
|
||||
dig
|
||||
|
|
|
|||
|
|
@ -1,84 +0,0 @@
|
|||
theme = "ayu_evolve"
|
||||
|
||||
[editor]
|
||||
line-number = "relative"
|
||||
cursorline = true
|
||||
cursorcolumn = false
|
||||
true-color = true
|
||||
undercurl = true
|
||||
bufferline = "multiple"
|
||||
color-modes = true
|
||||
default-line-ending = "lf"
|
||||
popup-border = "all"
|
||||
|
||||
[editor.statusline]
|
||||
left = [
|
||||
"mode",
|
||||
"spacer",
|
||||
"version-control",
|
||||
"file-type",
|
||||
"separator",
|
||||
"read-only-indicator",
|
||||
"file-name",
|
||||
"file-modification-indicator",
|
||||
"spacer",
|
||||
"spinner",
|
||||
]
|
||||
center = ["diagnostics"]
|
||||
right = [
|
||||
"register",
|
||||
"file-line-ending",
|
||||
"file-encoding",
|
||||
"separator",
|
||||
"total-line-numbers",
|
||||
"position",
|
||||
"position-percentage",
|
||||
]
|
||||
separator = "|"
|
||||
mode.normal = "NORMAL"
|
||||
mode.insert = "INSERT"
|
||||
mode.select = "SELECT"
|
||||
|
||||
[editor.lsp]
|
||||
display-messages = true
|
||||
display-inlay-hints = true
|
||||
|
||||
[editor.cursor-shape]
|
||||
insert = "bar"
|
||||
normal = "block"
|
||||
select = "underline"
|
||||
|
||||
[editor.file-picker]
|
||||
hidden = false
|
||||
|
||||
[editor.auto-save]
|
||||
focus-lost = true
|
||||
after-delay.enable = true
|
||||
|
||||
[editor.whitespace.render]
|
||||
space = "all"
|
||||
tab = "all"
|
||||
newline = "none"
|
||||
|
||||
[editor.whitespace.characters]
|
||||
space = "·"
|
||||
nbsp = "⍽"
|
||||
tab = "→"
|
||||
newline = "⏎"
|
||||
tabpad = "·"
|
||||
|
||||
[editor.indent-guides]
|
||||
render = true
|
||||
|
||||
[editor.gutters]
|
||||
layout = ["diagnostics", "spacer", "line-numbers", "spacer", "diff"]
|
||||
line-numbers.min-width = 1
|
||||
|
||||
[editor.soft-wrap]
|
||||
enable = true
|
||||
wrap-at-text-width = true
|
||||
|
||||
[editor.inline-diagnostics]
|
||||
cursor-line = "hint"
|
||||
other-lines = "error"
|
||||
prefix-len = 2
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
{ ... }:
|
||||
{
|
||||
programs.helix = {
|
||||
enable = true;
|
||||
defaultEditor = true;
|
||||
settings =
|
||||
let
|
||||
config-file = builtins.readFile ./config.toml;
|
||||
config = builtins.fromTOML config-file;
|
||||
in
|
||||
config;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue