From 734967c967e9076b2202757febc7275b1745a305 Mon Sep 17 00:00:00 2001 From: Yuan Chiu Date: Mon, 5 May 2025 21:13:38 +0800 Subject: [PATCH] fix nvim: scrollbar --- .../exact_plugins/exact_ui/scrollbar.lua | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/dot_config/nvim/exact_lua/exact_plugins/exact_ui/scrollbar.lua b/dot_config/nvim/exact_lua/exact_plugins/exact_ui/scrollbar.lua index 84349df..d7a7b8f 100644 --- a/dot_config/nvim/exact_lua/exact_plugins/exact_ui/scrollbar.lua +++ b/dot_config/nvim/exact_lua/exact_plugins/exact_ui/scrollbar.lua @@ -2,18 +2,14 @@ return { 'dstein64/nvim-scrollview', - setup = function() + config = function() require('scrollview').setup({ - -- Default options - current_only = true, -- Only show scroll indicator in current window - winblend = 0, -- Blend of the scroll indicator - -- base = 1, -- Base value for the scroll indicator - -- max_lines = 1000, -- Maximum number of lines to show the scroll indicator - excluded_filetypes = { 'help', 'neo-tree' }, -- Filetypes to exclude from showing the scroll indicator - base = 'buffer', - -- column = 80, - signs_on_startup = {'all'}, - diagnostics_severities = {vim.diagnostic.severity.ERROR} + current_only = true, + -- base = 'buffer', + -- column = 80, -- 註解掉這行,讓它自己決定位置 + -- excluded_filetypes = { 'neo-tree', 'help' }, + signs_on_startup = { 'all' }, + diagnostics_severities = { vim.diagnostic.severity.ERROR }, }) end, }