1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-30 06:59:45 +01:00

helix: provide more detailed settings description (#3932)

Helix changed the definition of options. E.g. editor specific options
need to be prefixed with editor.
This commit is contained in:
Matthias Jonen 2023-05-04 00:42:04 +02:00 committed by GitHub
parent 788777b536
commit 514c0a71f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 5 deletions

View file

@ -24,11 +24,15 @@ in {
example = literalExpression '' example = literalExpression ''
{ {
theme = "base16"; theme = "base16";
editor = {
line-number = "relative";
lsp.display-messages = true; lsp.display-messages = true;
};
keys.normal = { keys.normal = {
space.space = "file_picker"; space.space = "file_picker";
space.w = ":w"; space.w = ":w";
space.q = ":q"; space.q = ":q";
esc = [ "collapse_selection" "keep_primary_selection" ];
}; };
} }
''; '';

View file

@ -9,11 +9,15 @@ with lib;
settings = { settings = {
theme = "base16"; theme = "base16";
editor = {
line-number = "relative";
lsp.display-messages = true; lsp.display-messages = true;
};
keys.normal = { keys.normal = {
space.space = "file_picker"; space.space = "file_picker";
space.w = ":w"; space.w = ":w";
space.q = ":q"; space.q = ":q";
esc = [ "collapse_selection" "keep_primary_selection" ];
}; };
}; };

View file

@ -1,9 +1,15 @@
theme = "base16" theme = "base16"
[editor]
line-number = "relative"
[editor.lsp]
display-messages = true
[keys.normal]
esc = ["collapse_selection", "keep_primary_selection"]
[keys.normal.space] [keys.normal.space]
q = ":q" q = ":q"
space = "file_picker" space = "file_picker"
w = ":w" w = ":w"
[lsp]
display-messages = true