navigator.lua/lua/navigator/rename.lua
rayx 941b3fc80f
vim.ui.select adapt native codeaction and codelens apply actions (#117)
* doc update for lsp-installer

* use vim.ui.select and guihua ui patch

* adjust null-ls sequence
2021-12-17 08:54:36 +11:00

17 lines
374 B
Lua

-- https://github.com/lukas-reineke/dotfiles/blob/master/vim/lua/lsp/rename.lua
local M = {}
local util = require('navigator.util')
-- local rename_prompt = 'Rename -> '
M.rename = function()
local input = vim.ui.input
vim.ui.input = require('guihua.floating').input
vim.lsp.buf.rename()
vim.defer_fn(function()
vim.ui.input = input
end, 1000)
end
return M