feat(cursorline): Add cursorline option
This commit is contained in:
@@ -38,6 +38,7 @@ keep this list up to date.
|
|||||||
(simrat39/symbols-outline.nvim#194)
|
(simrat39/symbols-outline.nvim#194)
|
||||||
- Feat: when `auto_close=true` only auto close if `goto_location` is used (where
|
- Feat: when `auto_close=true` only auto close if `goto_location` is used (where
|
||||||
focus changed), and not for `focus_location` (simrat39/symbols-outline.nvim#119)
|
focus changed), and not for `focus_location` (simrat39/symbols-outline.nvim#119)
|
||||||
|
- Feat: Cursorline option for the outline window
|
||||||
|
|
||||||
- Fix symbol preview (simrat39/symbols-outline.nvim#176)
|
- Fix symbol preview (simrat39/symbols-outline.nvim#176)
|
||||||
- Fix `SymbolsOutlineClose` crashing when already closed: simrat39/symbols-outline.nvim#163
|
- Fix `SymbolsOutlineClose` crashing when already closed: simrat39/symbols-outline.nvim#163
|
||||||
@@ -133,6 +134,12 @@ Items will be moved to above list when complete.
|
|||||||
- Go to parent
|
- Go to parent
|
||||||
- Cycle siblings
|
- Cycle siblings
|
||||||
|
|
||||||
|
- [ ] simrat39/symbols-outline.nvim#75: Handling of the outline window when attached
|
||||||
|
buffer is closed.
|
||||||
|
|
||||||
|
Maybe it should continue working, so that pressing enter can open a split to
|
||||||
|
the correct location, and pressing `q` can properly close the buffer.
|
||||||
|
|
||||||
### Related plugins
|
### Related plugins
|
||||||
|
|
||||||
- nvim-navic
|
- nvim-navic
|
||||||
@@ -225,6 +232,7 @@ local opts = {
|
|||||||
auto_close = false,
|
auto_close = false,
|
||||||
show_numbers = false,
|
show_numbers = false,
|
||||||
show_relative_numbers = false,
|
show_relative_numbers = false,
|
||||||
|
show_cursorline = true,
|
||||||
show_symbol_details = true,
|
show_symbol_details = true,
|
||||||
preview_bg_highlight = 'Pmenu',
|
preview_bg_highlight = 'Pmenu',
|
||||||
autofold_depth = nil,
|
autofold_depth = nil,
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ M.defaults = {
|
|||||||
auto_preview = false,
|
auto_preview = false,
|
||||||
show_numbers = false,
|
show_numbers = false,
|
||||||
show_relative_numbers = false,
|
show_relative_numbers = false,
|
||||||
|
show_cursorline = true,
|
||||||
show_symbol_details = true,
|
show_symbol_details = true,
|
||||||
preview_bg_highlight = 'Pmenu',
|
preview_bg_highlight = 'Pmenu',
|
||||||
winblend = 0,
|
winblend = 0,
|
||||||
|
|||||||
@@ -117,6 +117,7 @@ local function update_hover()
|
|||||||
provider.hover_info(params.bufnr, params, function(err, result)
|
provider.hover_info(params.bufnr, params, function(err, result)
|
||||||
if err then
|
if err then
|
||||||
print(vim.inspect(err))
|
print(vim.inspect(err))
|
||||||
|
return
|
||||||
end
|
end
|
||||||
local markdown_lines = {}
|
local markdown_lines = {}
|
||||||
if result ~= nil then
|
if result ~= nil then
|
||||||
|
|||||||
@@ -49,6 +49,10 @@ function View:setup_view()
|
|||||||
if config.options.show_relative_numbers then
|
if config.options.show_relative_numbers then
|
||||||
vim.api.nvim_win_set_option(self.winnr, 'rnu', true)
|
vim.api.nvim_win_set_option(self.winnr, 'rnu', true)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if config.options.show_cursorline then
|
||||||
|
vim.api.nvim_win_set_option(self.winnr, 'cursorline', true)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function View:close()
|
function View:close()
|
||||||
|
|||||||
Reference in New Issue
Block a user