perl-language-server icon indicating copy to clipboard operation
perl-language-server copied to clipboard

Option to allow for running of perlimports

Open WhoIsSethDaniel opened this issue 4 years ago • 2 comments

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.

WhoIsSethDaniel avatar Jun 30 '21 18:06 WhoIsSethDaniel

That seems interesting. If you wanted to submit a merge request to add this, I would take a look at it.

FractalBoy avatar Jun 30 '21 18:06 FractalBoy

I will see what I can do.

WhoIsSethDaniel avatar Jul 01 '21 00:07 WhoIsSethDaniel