Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Rename popup #35

Closed
kristijanhusak opened this issue Jan 27, 2021 · 20 comments
Closed

[Feature] Rename popup #35

kristijanhusak opened this issue Jan 27, 2021 · 20 comments

Comments

@kristijanhusak
Copy link

Hi,

what do you think about introducing rename popup similar to coc.nvim?

coc-rename

@glepnir
Copy link
Member

glepnir commented Jan 27, 2021

Okay support it later. but find a way to make it beautiful than coc

@glepnir
Copy link
Member

glepnir commented Jan 27, 2021

ezgif com-gif-maker

@kristijanhusak
Copy link
Author

Looks good. Only thing that I noticed is that it has 2 rows instead of 1. Is that on purpose or?

@glepnir
Copy link
Member

glepnir commented Jan 27, 2021

yep.. because 1 row looks too thin ..what do you think 1 is better?

@kristijanhusak
Copy link
Author

I guess it can be configurable. 2 is a bit too big for me because I use some additional line spacing. Passing an configuration to rename() function would work I guess.

@glepnir
Copy link
Member

glepnir commented Jan 27, 2021

opts.rename_row ?

@kristijanhusak
Copy link
Author

Yeah that is fine.

@glepnir
Copy link
Member

glepnir commented Jan 27, 2021

done.

@kristijanhusak
Copy link
Author

Thanks. I'll give it a test in couple of hours.

@kristijanhusak
Copy link
Author

I gave it a try, it's working ok. 1 row is perfect. I just noticed one thing. After I do rename, it triggers an autocompletion in my main window. Is there a way to prevent this from happening? It's not a big deal, but if it's a simple fix, guess it can be fixed. Here's the gif:

rename-insert

@glepnir
Copy link
Member

glepnir commented Jan 28, 2021

reproduce with nvim-compe. works fine with completion-nvim.. I will check it.

@glepnir
Copy link
Member

glepnir commented Jan 28, 2021

Should be fixed.

@glepnir
Copy link
Member

glepnir commented Jan 28, 2021

with new ui

rename

@kristijanhusak
Copy link
Author

@glepnir works great, thanks!

@nghialm269
Copy link
Contributor

@glepnir is it possible to prefill the rename input with prepareRename placeholder or <cword> just like what vim.lsp.buf.rename() does?

@glepnir
Copy link
Member

glepnir commented Jan 29, 2021

I’m not sure this is useful or it’s noise to some people, But I will add an option to control this.

@kristijanhusak
Copy link
Author

kristijanhusak commented Jan 29, 2021

I'd also like that option, thanks.

@glepnir
Copy link
Member

glepnir commented Jan 29, 2021

Hmm got some problem. can't set text into prompt buffer...

@kristijanhusak
Copy link
Author

@glepnir Maybe it's because of neovim issue. See RishabhRD/nvim-lsputils#19 (comment)

@glepnir
Copy link
Member

glepnir commented Jan 29, 2021

I had talk to bfredl ..need fixed in upstream. I will take a look at neovim when i have time :)

qqshfox pushed a commit to qqshfox/lspsaga.nvim that referenced this issue Dec 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants