Skip to content

Commit

Permalink
feat(helix): add toggle lsp inlay hints keybind
Browse files Browse the repository at this point in the history
  • Loading branch information
mrnossiom committed Aug 14, 2024
1 parent 9e27f2b commit 92b1ee9
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
15 changes: 12 additions & 3 deletions home-manager/modules/helix.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,25 @@ in
settings = {
theme = "onedark";
editor = {
auto-save = true;
auto-format = true;
auto-pairs = false;
auto-save = true;
bufferline = "multiple";
line-number = "relative";
mouse = false;
rulers = [ 80 ];
text-width = 80;

indent-guides = {
render = true;
characters = "╎";
};
bufferline = "multiple";

file-picker.hidden = false;

lsp.display-inlay-hints = false;

soft-wrap.wrap-at-text-width = true;
rulers = [ 80 ];
};
keys =
let
Expand All @@ -48,9 +52,14 @@ in
{
normal = {
"space" = {
# Swap original keybinds, default (lowercase) searches in `pwd`
f = "file_picker_in_current_directory";
F = "file_picker";
};

"A-t" = ":toggle lsp.display-inlay-hints";

# TODO: try to have `d`,`c` noyank versions by default
} // noop-arrow-keys;
insert = noop-arrow-keys;
};
Expand Down
1 change: 1 addition & 0 deletions home-manager/modules/tools.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
killall
lsof
mediainfo
ouch
pv
ripgrep
speedtest-go
Expand Down
1 change: 1 addition & 0 deletions home-manager/profiles/macintosh.nix
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ in
settings = {
confirm_os_window_close = 0;
enable_audio_bell = "no";
macos_option_as_alt = "left";
} // optionalAttrs isDarwin {
# Workaround to avoid launching fish as a login shell
shell = "zsh -c fish";
Expand Down

0 comments on commit 92b1ee9

Please sign in to comment.