nix(home-manager): mv helix config to its own file
This commit is contained in:
parent
83e0c28c54
commit
4f72fcc3b7
34
home.nix
34
home.nix
@ -5,40 +5,8 @@
|
||||
programs.home-manager.enable = true;
|
||||
programs.home-manager.path = "$HOME/utils/dotfiles";
|
||||
|
||||
programs.helix.enable = true;
|
||||
# https://docs.helix-editor.com/from-vim.html
|
||||
# https://github.com/helix-editor/helix/wiki/Migrating-from-Vim
|
||||
programs.helix.settings = {
|
||||
theme = "dracula";
|
||||
editor = {
|
||||
line-number = "relative";
|
||||
cursor-shape = {
|
||||
insert = "bar";
|
||||
normal = "block";
|
||||
};
|
||||
whitespace = {
|
||||
render = "all";
|
||||
# or control each character
|
||||
#render = {
|
||||
# space = "all";
|
||||
# tab = "all";
|
||||
# newline = "none";
|
||||
#};
|
||||
|
||||
characters = {
|
||||
space = "·";
|
||||
nbsp = "⍽";
|
||||
tab = "→";
|
||||
newline = "¬";
|
||||
# Tabs will look like "→···" (depending on tab width)
|
||||
tabpad = "·";
|
||||
};
|
||||
};
|
||||
lsp.display-messages = true;
|
||||
};
|
||||
};
|
||||
|
||||
imports = [
|
||||
./nix/programs/helix.nix
|
||||
./nix/programs/newsboat.nix
|
||||
];
|
||||
|
||||
|
38
nix/programs/helix.nix
Normal file
38
nix/programs/helix.nix
Normal file
@ -0,0 +1,38 @@
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
programs.helix = {
|
||||
enable = true;
|
||||
settings = {
|
||||
theme = "dracula";
|
||||
editor = {
|
||||
line-number = "relative";
|
||||
cursor-shape = {
|
||||
insert = "bar";
|
||||
normal = "block";
|
||||
};
|
||||
whitespace = {
|
||||
render = "all";
|
||||
# or control each character
|
||||
#render = {
|
||||
# space = "all";
|
||||
# tab = "all";
|
||||
# newline = "none";
|
||||
#};
|
||||
|
||||
characters = {
|
||||
space = "·";
|
||||
nbsp = "⍽";
|
||||
tab = "→";
|
||||
newline = "¬";
|
||||
# Tabs will look like "→···" (depending on tab width)
|
||||
tabpad = "·";
|
||||
};
|
||||
};
|
||||
lsp.display-messages = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user