mirror of
https://github.com/ray-x/navigator.lua
synced 2024-11-17 15:26:03 +00:00
941b3fc80f
* doc update for lsp-installer * use vim.ui.select and guihua ui patch * adjust null-ls sequence
17 lines
374 B
Lua
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
|