Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(php): Add php-cs-fixer as formatter for php #476

Merged
merged 4 commits into from
Jul 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions lua/astrocommunity/pack/php/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# PHP Language Pack

**Note:** Installation of `phpactor` requires `composer`

This plugin pack does the following:

- Adds `php` Treesitter parsers
- Adds `phpactor` language servers
- Adds `php-cs-fixer` for formatting
- Adds `php-debug-adapter` for debugging
4 changes: 4 additions & 0 deletions lua/astrocommunity/pack/php/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,8 @@ return {
"jay-babu/mason-nvim-dap.nvim",
opts = function(_, opts) opts.ensure_installed = utils.list_insert_unique(opts.ensure_installed, "php") end,
},
{
"jay-babu/mason-null-ls.nvim",
opts = function(_, opts) opts.ensure_installed = utils.list_insert_unique(opts.ensure_installed, "php-cs-fixer") end,
},
}