relastle / vim-nayvy

:new_moon: Enriching python coding in Vim :snake:
MIT License
66 stars 4 forks source link

keep the cursor after NayvyImports #15

Closed Shane-XB-Qian closed 1 year ago

Shane-XB-Qian commented 1 year ago

could you make the cursor keep at its original place after ran NayvyImports ? // seems would be more convenient if so.

relastle commented 1 year ago

It will be possible if the number of lines that is inserted by the command is calculated, and move the cursor below by the number.

PR is welcome. (I personally no longer use this command, cause ALE fixer works so well in almost all situations)

Shane-XB-Qian commented 1 year ago

cause ALE fixer works so well in almost all situations

yea, i was thinking others lsp client, but no clue to impl it, vs nayvyimports seems a more easy option, but cursor place is a concern.

Shane-XB-Qian commented 1 year ago

let it be..