diff options
| author | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2023-03-09 20:13:56 +0100 |
|---|---|---|
| committer | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2023-03-09 20:13:56 +0100 |
| commit | 3505100073d973c9f4f75e11ecaa777d84775984 (patch) | |
| tree | ec082550ae2fa4ce09adcd54a7874f294e9c2099 /lua/alpha/lsp/null-ls.lua | |
| parent | 71f2be8e0d59e609eecf282e86d6c0de1dccac75 (diff) | |
| download | nvim-conf-3505100073d973c9f4f75e11ecaa777d84775984.tar.gz nvim-conf-3505100073d973c9f4f75e11ecaa777d84775984.zip | |
feat: update with composer version
Diffstat (limited to 'lua/alpha/lsp/null-ls.lua')
| -rw-r--r-- | lua/alpha/lsp/null-ls.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/alpha/lsp/null-ls.lua b/lua/alpha/lsp/null-ls.lua index f80b183..91caa82 100644 --- a/lua/alpha/lsp/null-ls.lua +++ b/lua/alpha/lsp/null-ls.lua @@ -20,14 +20,14 @@ local sources = { }, } -if composer.query { "require", "symfony/framework-bundle" } ~= nil then +if composer.query_composer_file { "require", "symfony/framework-bundle" } ~= nil then table.insert( sources, null_ls.builtins.diagnostics.phpcs.with { method = null_ls.methods.DIAGNOSTICS_ON_SAVE, } ) -elseif composer.query { "require", "laravel/framework" } ~= nil then +elseif composer.query_composer_file { "require", "laravel/framework" } ~= nil then table.insert(sources, null_ls.builtins.formatting.pint) -- table.insert(sources, laravel_actions.relationships) end |