Merge pull request #100 from FrothyMarrow/fix-winbar-scrolling

fix: jittery scrolling due to flickering winbar
This commit is contained in:
NotAShelf 2023-07-21 22:47:17 +03:00 committed by GitHub
commit f5719426cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 1 deletions

View file

@ -54,7 +54,8 @@ in {
{ {
"navic", "navic",
color_correction = nil, color_correction = nil,
navic_opts = nil navic_opts = nil,
draw_empty = ${toString config.vim.ui.breadcrumbs.alwaysRender}
} }
} }
}, },

View file

@ -8,6 +8,14 @@ in {
options.vim.ui.breadcrumbs = { options.vim.ui.breadcrumbs = {
enable = lib.mkEnableOption "breadcrumbs"; enable = lib.mkEnableOption "breadcrumbs";
# maybe this should be an option to *disable* alwaysRender optionally but oh well
# too late
alwaysRender = mkOption {
type = types.bool;
default = true;
description = "Whether to always display the breadcrumbs component on winbar (always renders winbar)";
};
navbuddy = { navbuddy = {
enable = mkEnableOption "navbuddy LSP UI"; enable = mkEnableOption "navbuddy LSP UI";
useDefaultMappings = mkEnableOption "default Navbuddy keybindings (disables user keybinds)"; useDefaultMappings = mkEnableOption "default Navbuddy keybindings (disables user keybinds)";