perl-language-server
perl-language-server copied to clipboard
Option to allow for running of perlimports
For reference: perlimports: https://metacpan.org/dist/App-perlimports video about it: https://youtu.be/fKqxdTbGxYY
One thing I really like about programming in Go is that gopls can be configured to run goimports. This automatically adds imports being used to the import section (and also sorts and organizes imports). perlimports can do something very similar for perl as goimports does for Go.
I realize you already have module sorting so maybe this will interfere with your tastes there, but the ability to automatically clean up and 'use' (or remove an unused 'use'), to me, can be a real time saver.
I'm proposing an option, similar to how perltidy integration works, that allows for the running of perlimports.
That seems interesting. If you wanted to submit a merge request to add this, I would take a look at it.
I will see what I can do.