diff --git a/README.md b/README.md index 9712260..9c9e9a9 100644 --- a/README.md +++ b/README.md @@ -236,6 +236,8 @@ Pass a table to the setup call with your configuration options. -- See :help 'winhl' -- To change background color to "CustomHl" for example, use "Normal:CustomHl". winhl = '', + -- Message displayed when there are no providers avialable. + no_provider_message = 'No supported provider...' }, outline_items = { diff --git a/lua/outline/config.lua b/lua/outline/config.lua index 82ddc37..0309868 100644 --- a/lua/outline/config.lua +++ b/lua/outline/config.lua @@ -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, diff --git a/lua/outline/sidebar.lua b/lua/outline/sidebar.lua index 74f97d1..e32e979 100644 --- a/lua/outline/sidebar.lua +++ b/lua/outline/sidebar.lua @@ -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