Merge pull request #135 from dmtrKovalenko/main

feat: Add configuration for no providers message
This commit is contained in:
~hedy
2025-06-28 12:53:13 +08:00
committed by GitHub
3 changed files with 4 additions and 1 deletions

View File

@@ -46,6 +46,7 @@ M.defaults = {
winhl = '',
jump_highlight_duration = 400,
center_on_jump = true,
no_provider_message = 'No supported provider...',
},
preview_window = {
live = false,

View File

@@ -371,7 +371,7 @@ end
-- stylua: ignore end
function Sidebar:no_providers_ui()
self.view:rewrite_lines({ 'No supported provider...' })
self.view:rewrite_lines({ cfg.o.outline_window.no_provider_message })
vim.api.nvim_win_set_cursor(self.view.win, { 1, 0 })
end