feat(cursorline): Add cursorline option

This commit is contained in:
hedy
2023-11-01 16:20:51 +08:00
parent 1b1f4c02fc
commit 0769cfe5c3
4 changed files with 14 additions and 0 deletions

View File

@@ -13,6 +13,7 @@ M.defaults = {
auto_preview = false,
show_numbers = false,
show_relative_numbers = false,
show_cursorline = true,
show_symbol_details = true,
preview_bg_highlight = 'Pmenu',
winblend = 0,

View File

@@ -117,6 +117,7 @@ local function update_hover()
provider.hover_info(params.bufnr, params, function(err, result)
if err then
print(vim.inspect(err))
return
end
local markdown_lines = {}
if result ~= nil then

View File

@@ -49,6 +49,10 @@ function View:setup_view()
if config.options.show_relative_numbers then
vim.api.nvim_win_set_option(self.winnr, 'rnu', true)
end
if config.options.show_cursorline then
vim.api.nvim_win_set_option(self.winnr, 'cursorline', true)
end
end
function View:close()