Skip to content

Commit

Permalink
Basic: apply scrolloff config flag as it is ignored currently
Browse files Browse the repository at this point in the history
  • Loading branch information
lukas-zenner authored and jordanisaacs committed Oct 12, 2023
1 parent 0cf6e89 commit fcd790f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/basic/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ in

scrollOffset = mkOption {
type = types.int;
default = 8;
default = 0;
description = "Start scrolling this number of lines from the top or bottom of the page.";
};

Expand Down Expand Up @@ -162,6 +162,7 @@ in
set shortmess+=c
set tm=${toString cfg.mapTimeout}
set hidden
set scrolloff=${toString cfg.scrollOffset}
${optionalString cfg.splitBelow ''
set splitbelow
''}
Expand Down

0 comments on commit fcd790f

Please sign in to comment.