Compare commits

..

No commits in common. "2791906c64743cf996a277e9d089913b91a0766f" and "8beb68162fb88030cea17beeed61fcf6ce85f944" have entirely different histories.

2 changed files with 17 additions and 3 deletions

View File

@ -1,5 +1,11 @@
require("indent_blankline").setup { require("indent_blankline").setup {
space_char_blankline = " ", space_char_blankline = " ",
show_current_context = true, show_current_context = true,
} }
vim.cmd [[
highlight IndentBlanklineChar guifg=#e5e5e5 gui=nocombine
highlight IndentBlanklineContextChar guifg=#666666 gui=nocombine
]]

View File

@ -1,6 +1,16 @@
local null_ls = require("null-ls") local null_ls = require("null-ls")
local sources = { local sources = {
-- -- prettier - using perttierd instead
-- null_ls.builtins.formatting.prettier.with({
-- extra_filetypes = { "php" },
-- prefer_local = "node_modules/.bin",
-- }),
-- -- prettierd with php
-- null_ls.builtins.formatting.prettierd.with({
-- extra_filetypes = { "php" },
-- }),
-- prettierd without php (use phpcbf instead)
null_ls.builtins.formatting.prettierd, null_ls.builtins.formatting.prettierd,
-- phpcs - standards wordpress -- phpcs - standards wordpress
@ -25,14 +35,12 @@ local sources = {
condition = function(utils) condition = function(utils)
return not utils.root_has_file({ "vendor/bin/phpcs" }) return not utils.root_has_file({ "vendor/bin/phpcs" })
end, end,
args = { "--standard=PSR12", "--report=json", "-s", "-" },
}), }),
-- phpcbf -- phpcbf
null_ls.builtins.formatting.phpcbf.with({ null_ls.builtins.formatting.phpcbf.with({
condition = function(utils) condition = function(utils)
return not utils.root_has_file({ "vendor/bin/phpcbf" }) return not utils.root_has_file({ "vendor/bin/phpcbf" })
end, end,
args = { "--standard=PSR12", "--report=json", "-s", "-" },
}), }),
-- black -- black