hrsh7th / vim-lamp

💡Language Server Protocol client for Vim.
MIT License
32 stars 0 forks source link

Insert renaming item text on :LampRename #27

Closed Shatur closed 4 years ago

Shatur commented 4 years ago

Currently :LampRename requests input with empty text. I suggest to fill this input with the current item name by default. This can be very useful if you want to fix a typo or just extend current name. Most IDE's use the same approach for renaming.

Shatur commented 4 years ago

For example, how it works in VSCode.

hrsh7th commented 4 years ago

Fixed it.

The textDocument/prepareRename is bit complex so I missed the return data format.

Shatur commented 4 years ago

You are very fast :) Thanks!