mirror of
https://github.com/pnx/dotfiles
synced 2026-06-16 11:24:55 +02:00
nvim php: split main file as it starts to get abit big
This commit is contained in:
parent
61ef12eff1
commit
bb62416c69
7 changed files with 164 additions and 142 deletions
30
nvim/lua/user/plugins/lang/php/lint.lua
Normal file
30
nvim/lua/user/plugins/lang/php/lint.lua
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
|
||||
return {
|
||||
-- 'mfussenegger/nvim-lint',
|
||||
-- optional = true,
|
||||
-- opts = {
|
||||
-- linters = {
|
||||
-- phpstan = {
|
||||
-- args = {
|
||||
-- "analyze",
|
||||
-- '--error-format=json',
|
||||
-- '--no-progress',
|
||||
-- }
|
||||
-- }
|
||||
-- },
|
||||
-- linters_by_ft = {
|
||||
-- php = { 'phpstan' },
|
||||
-- },
|
||||
-- },
|
||||
-- config = function (_, opts)
|
||||
-- local lint = require('lint')
|
||||
-- lint.linters_by_ft = opts.linters_by_ft or {}
|
||||
-- lint.linters.phpstan.args = opts.linters.phpstan.args
|
||||
--
|
||||
-- vim.api.nvim_create_autocmd({ "BufWritePost" }, {
|
||||
-- callback = function()
|
||||
-- require('lint').try_lint()
|
||||
-- end,
|
||||
-- })
|
||||
-- end
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue