aboutsummaryrefslogtreecommitdiffstats
path: root/after/plugin
diff options
context:
space:
mode:
authorAriel D'Alessandro <ariel.dalessandro@auto1.com>2022-10-04 14:42:36 +0200
committerAriel D'Alessandro <ariel.dalessandro@auto1.com>2022-10-04 14:42:36 +0200
commitb52a4e554f54e5a374febcd069a2e4b9c0d81e4c (patch)
tree0ec4c942e49a820ab0c71ea2d58d2771c0d4bb1e /after/plugin
parentb0807c67e416fbd37f70ee2565f4462305d181fa (diff)
downloadnvim-conf-b52a4e554f54e5a374febcd069a2e4b9c0d81e4c.tar.gz
nvim-conf-b52a4e554f54e5a374febcd069a2e4b9c0d81e4c.zip
set on save for the diagnostic sources
Diffstat (limited to 'after/plugin')
-rw-r--r--after/plugin/null-ls.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/after/plugin/null-ls.lua b/after/plugin/null-ls.lua
index e252579..e3027ae 100644
--- a/after/plugin/null-ls.lua
+++ b/after/plugin/null-ls.lua
@@ -28,6 +28,7 @@ local laravel_sources = {
null_ls.builtins.diagnostics.phpstan.with({
command = "./vendor/bin/phpstan",
to_temp_file = false,
+ method = null_ls.methods.DIAGNOSTICS_ON_SAVE,
}),
null_ls.builtins.formatting.pint,
null_ls.builtins.formatting.blade_formatter,
@@ -37,9 +38,11 @@ local symonfy_sources = {
null_ls.builtins.diagnostics.phpstan.with({
command = "./bin/phpstan",
to_temp_file = false,
+ method = null_ls.methods.DIAGNOSTICS_ON_SAVE,
}),
null_ls.builtins.diagnostics.phpcs.with({
command = "./bin/phpcs",
+ method = null_ls.methods.DIAGNOSTICS_ON_SAVE,
}),
}