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 ''
{
theme = "base16";
lsp.display-messages = true;
editor = {
line-number = "relative";
lsp.display-messages = true;
};
keys.normal = {
space.space = "file_picker";
space.w = ":w";
space.q = ":q";
esc = [ "collapse_selection" "keep_primary_selection" ];
};
}
'';

View File

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

View File

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