diff --git a/README.md b/README.md index e909aac..d733a48 100644 --- a/README.md +++ b/README.md @@ -138,9 +138,6 @@ require('dressing').setup({ -- Window transparency (0-100) winblend = 10, - -- see :help dressing-prompt - prompt_buffer = false, - -- see :help dressing_get_config get_config = nil, }, diff --git a/doc/dressing.txt b/doc/dressing.txt index 7db770a..642ddca 100644 --- a/doc/dressing.txt +++ b/doc/dressing.txt @@ -28,9 +28,6 @@ Configure dressing.nvim by calling the setup() function. -- Window transparency (0-100) winblend = 10, - -- see :help dressing-prompt - prompt_buffer = false, - -- see :help dressing_get_config get_config = nil, }, diff --git a/lua/dressing/config.lua b/lua/dressing/config.lua index e32ddfb..a69ca68 100644 --- a/lua/dressing/config.lua +++ b/lua/dressing/config.lua @@ -21,9 +21,6 @@ local default_config = { -- Window transparency (0-100) winblend = 10, - -- see :help dressing-prompt - prompt_buffer = false, - -- see :help dressing_get_config get_config = nil, }, diff --git a/lua/dressing/init.lua b/lua/dressing/init.lua index 2244cf5..a8b8c23 100644 --- a/lua/dressing/init.lua +++ b/lua/dressing/init.lua @@ -4,6 +4,16 @@ local M = {} M.setup = function(opts) config.update(opts) + -- Wait until vim has fully started up before we show deprecation warnings + vim.defer_fn(function() + if config.input.prompt_buffer then + vim.notify( + "dressing.nvim option 'input.prompt_buffer = true' is deprecated and will be removed in a future version. If you want it to continue to be supported please file an issue with your use case: https://github.com/stevearc/dressing.nvim/issues/new", + vim.log.levels.WARN, + {} + ) + end + end, 100) end local original_input