Skip to content

Commit

Permalink
Address luacheck warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
dstein64 committed Oct 15, 2024
1 parent a8f1087 commit db413e9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lua/scrollview.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1278,7 +1278,6 @@ end
-- WARN: 'nvim_win_set_hl_ns' "takes precedence over the 'winhighlight'
-- option".
local get_mapped_highlight = function(winid, from)
local config = api.nvim_win_get_config(winid)
local highlight = from
local hl_ns = -1
if api.nvim_get_hl_ns ~= nil then
Expand All @@ -1288,8 +1287,7 @@ local get_mapped_highlight = function(winid, from)
if highlight_lookup[winid .. '.' .. from] ~= nil then
highlight = highlight_lookup[winid .. '.' .. from]
else
local hl_spec = {}
hl_spec = api.nvim_get_hl(
local hl_spec = api.nvim_get_hl(
hl_ns, {name = from, create = false, link = true})
-- NormalFloat takes precedence for floating windows, but if it's not
-- specified, Normal will be used if present.
Expand Down Expand Up @@ -1502,7 +1500,7 @@ local show_scrollbar = function(winid, bar_winid)
-- just specify Normal highlighting. With just that, a color scheme's
-- specification of EndOfBuffer would be used to color the bottom of the
-- scrollbar.
target = is_float and 'NormalFloat' or 'Normal'
local target = is_float and 'NormalFloat' or 'Normal'
if consider_border(winid) then
local border = api.nvim_win_get_config(winid).border
local winwidth = fn.winwidth(winid)
Expand Down

0 comments on commit db413e9

Please sign in to comment.