feat: rename param

This commit is contained in:
Barrett Ruth 2026-02-02 01:07:59 -05:00
parent 851cdb0214
commit ea8a2cbaa9
5 changed files with 11 additions and 11 deletions

View file

@ -155,7 +155,7 @@ function M.highlight_hunk(bufnr, ns, hunk, opts)
line_hl_group = line_hl,
priority = 198,
}
if opts.highlights.linenr then
if opts.highlights.gutter then
extmark_opts.number_hl_group = line_hl
end
pcall(vim.api.nvim_buf_set_extmark, bufnr, ns, buf_line, 0, extmark_opts)

View file

@ -1,7 +1,7 @@
---@class fugitive-ts.Highlights
---@field treesitter boolean
---@field background boolean
---@field linenr boolean
---@field gutter boolean
---@field vim boolean
---@class fugitive-ts.Config
@ -37,7 +37,7 @@ local default_config = {
highlights = {
treesitter = true,
background = true,
linenr = true,
gutter = true,
vim = false,
},
}
@ -172,7 +172,7 @@ function M.setup(opts)
vim.validate({
['highlights.treesitter'] = { opts.highlights.treesitter, 'boolean', true },
['highlights.background'] = { opts.highlights.background, 'boolean', true },
['highlights.linenr'] = { opts.highlights.linenr, 'boolean', true },
['highlights.gutter'] = { opts.highlights.gutter, 'boolean', true },
['highlights.vim'] = { opts.highlights.vim, 'boolean', true },
})
end