restructure home as submodule of each system
This commit is contained in:
parent
ed8de34c0f
commit
88ad3517bf
26 changed files with 6 additions and 6 deletions
9
modules/system/home/editor/default.nix
Normal file
9
modules/system/home/editor/default.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{ pkgs, ... }: {
|
||||
programs.helix = {
|
||||
enable = true;
|
||||
defaultEditor = true;
|
||||
extraPackages = with pkgs; [ nil marksman ];
|
||||
settings = import ./helix-config.nix;
|
||||
languages = import ./helix-languages.nix;
|
||||
};
|
||||
}
|
29
modules/system/home/editor/helix-config.nix
Normal file
29
modules/system/home/editor/helix-config.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{
|
||||
theme = "rose_pine";
|
||||
|
||||
editor = {
|
||||
line-number = "relative";
|
||||
cursorline = true;
|
||||
auto-format = true;
|
||||
soft-wrap.enable = true;
|
||||
|
||||
whitespace.render = "all";
|
||||
|
||||
cursor-shape = {
|
||||
insert = "bar";
|
||||
normal = "block";
|
||||
select = "underline";
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
keys.normal = {
|
||||
h = "move_char_left";
|
||||
t = "move_line_up";
|
||||
n = "move_line_down";
|
||||
s = "move_char_right";
|
||||
|
||||
C-n = "search_next";
|
||||
C-t = "search_prev";
|
||||
};
|
||||
}
|
17
modules/system/home/editor/helix-languages.nix
Normal file
17
modules/system/home/editor/helix-languages.nix
Normal file
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
language-server = {
|
||||
asm-lsp = {
|
||||
command = "asm-lsp";
|
||||
};
|
||||
};
|
||||
|
||||
language = [{
|
||||
name = "gas";
|
||||
scope = "source.gas";
|
||||
auto-format = false;
|
||||
language-servers = [ "asm-lsp" ];
|
||||
indent = { tab-width = 8; unit = " "; };
|
||||
roots = [];
|
||||
file-types = ["S"];
|
||||
}];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue