This commit is contained in:
Ray Elliott 2022-07-06 09:35:03 +01:00
commit 7434003b37
4 changed files with 81 additions and 1 deletions

View file

@ -40,6 +40,7 @@ local on_attach = function(client, bufnr)
local function buf_set_keymap(...)
vim.api.nvim_buf_set_keymap(bufnr, ...)
end
local function buf_set_option(...)
vim.api.nvim_buf_set_option(bufnr, ...)
end
@ -154,7 +155,7 @@ local sources = {
-- in project directory must
-- composer require friendsofphp/php-cs-fixer
-- as in https://github.com/FriendsOfPHP/PHP-CS-Fixer
-- I think os anyway - not totally sure any more
-- I think so anyway - not totally sure any more
null_ls.builtins.diagnostics.phpcs.with({
condition = function(utils)
return utils.root_has_file({"vendor/bin/phpcs"})