DEV Community

Discussion on: F*** PHPStorm Man and the high horse he rode in on

Collapse
 
lokidev profile image
LokiDev

Just out of curiosity:
Which nvim php setup do you have?

(Neo)vim is my go-to editor for bash, python, c and almost everything else, but in php I find the usage kind of behind storm/etc but I suspect this might be because I have the wrong plugins?

Easy testing, git access (Gina or fugitive?) And finding definitions and usages of symbols (like methods, constants and classes) would be nice. I tried the ctags based ones, but they're not really compatible with proper DependencyInjection or newer php features :(

Collapse
 
matthewbdaly profile image
Matthew Daly

I make heavy use of PHPActor, which gives me the same sort of refactoring tools as you find in an IDE, as well as navigation and really good completion.

I also use vim-ale, which works with a number of syntax checkers, including the basic PHP syntax check, CodeSniffer and Psalm, as well as ESLint and Flow for my Javascript.

For fuzzy search, I use vim-fzf with FZF and Ripgrep, while I use Fugitive for git support.

Collapse
 
lokidev profile image
LokiDev

Great, I already use fzf and rg heavily in zsh. So even better to integrate it in vim.

I thought about ale in combination with python so now I'll definitely give it a try!

Thanks for you answer this actually helps.

One off topic question: why psalm and not phpstan? I tried only Stan and Codesniffer and am curious if psalm might add sth useful to my toolbelt :).

Thread Thread
 
matthewbdaly profile image
Matthew Daly

I have used both to some extent, and I personally prefer Psalm over PHPStan, largely because I found it was better suited to legacy code (it was built for Vimeo's legacy code base) as a lot of my work is on a messy legacy application and it's had the ability to set a baseline for existing code right from the start. But vim-ale supports both so there's no need to switch if you want editor integration.

Thread Thread
 
lokidev profile image
LokiDev

Then I final thank you. Have a productive week ;)