Install composer dependencies ignoring PHP version When working with PHP projects, you often encounter situations where the required PHP version for a package is slightly different from the one you have installed locally. While it's generally recommended to stick to the specified version, there are cases where minor version differences might not be critical. In such scenarios, you can instruct Composer to ignore the platform requirements and proceed with the installation. Composer install ignoring PHP version Composer provides a handy flag "--ignore-platform-reqs" that allows you to bypass platform checks, including PHP version requirements. This can be particularly useful when you're confident that the minor version difference won't affect the package's functionality in your project. For instance, let's say a package you want to install requires PHP 8.2, but you have PHP 8.3 installed. In this case, you can use the following command to i
How to Make a Menu in Neovim How to Make a Menu in Neovim In Neovim leader key pull up a menu, it is the which-key plugin. I saw many videos where people use a menu in Neovim. They just press the leader key and a menu pops up. I wanted to have that too. I wondered which component of Neovim is responsible for that. I found out that it is the which-key plugin: https://github.com/folke/which-key.nvim Cases where a menu is useful in Neovim Neovim has already a bunch of "commands". Why would I need a menu? Useful when you want to group a set of commands you often use together. Also helpful when the command name is hard to remember: use the leader key and a combo of keys to get to the command. How to write a menu tree in Neovim configuration I use code-ai.nvim plugin to call AI to write code for me. I have defined a bunch of commands in my configuration fi