From d1db210a884e125c608db982517fa67c9047494d Mon Sep 17 00:00:00 2001 From: ray-x Date: Thu, 10 Nov 2022 12:04:38 +1100 Subject: [PATCH] bugfix lsp.rename cfg table --- lua/navigator/rename.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lua/navigator/rename.lua b/lua/navigator/rename.lua index ba7f0af..984bdc4 100644 --- a/lua/navigator/rename.lua +++ b/lua/navigator/rename.lua @@ -301,10 +301,10 @@ local function inc_rename_execute(opts) end M.rename = function() - if _NgConfigValues.lsp.rename == 'floating-preview' then + if _NgConfigValues.lsp.rename.style == 'floating-preview' then return M.rename_preview() end - if _NgConfigValues.lsp.rename == 'inplace-preview' then + if _NgConfigValues.lsp.rename.style == 'inplace-preview' then return M.rename_inplace() end @@ -317,7 +317,7 @@ M.rename = function() on_confirm = function(new_name) end, on_cancel = function() end, }) - vim.ui.input = ghinput + vim.ui.input = ghinput.input vim.lsp.buf.rename() vim.defer_fn(function() vim.ui.input = input