feat(cursorline): Add cursorline option
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user