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

View File

@ -39,3 +39,68 @@ endsnippet
snippet ftphp "<!-- vim: set filetype=php -->" snippet ftphp "<!-- vim: set filetype=php -->"
<!-- vim: set filetype=php: --> <!-- vim: set filetype=php: -->
endsnippet endsnippet
snippet wp "<!-- wp:... {...}"
<!-- wp:$1 ${2:\{"$3":$4\}} -->
$0
<!-- /wp:$1 -->
endsnippet
snippet wp/ "<!-- wp:... {...}"
<!-- wp:$1 ${2:\{"$3":$4\}} /-->$0
endsnippet
snippet wp:spacer "<!-- wp:spacer ..."
<!-- wp:spacer {"height":$1} -->
<div style="height: $1px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->$0
endsnippet
snippet wp:heading "<!-- wp:heading {..."
<!-- wp:heading {"className":"$1"} -->
<h${2:2} class="$1">$3</h$2>
<!-- /wp:heading -->$0
endsnippet
snippet wp:comments "<!-- wp:comments-query-loop"
<!-- wp:comments-query-loop -->
<div class="wp-block-comments-query-loop">
<!-- wp:comment-template -->
<!-- wp:columns -->
<div class="wp-block-columns"><!-- wp:column \{"width":"40px"\} -->
<div class="wp-block-column" style="flex-basis:40px">
<!-- wp:avatar \{"size":40,"style":\{"border":\{"radius":"20px"\}\}\} /--></div>
<!-- /wp:column -->
<!-- wp:column -->
<div class="wp-block-column">
<!-- wp:comment-author-name /-->
<!-- wp:group \{"style":\{"spacing":\{"margin":\{"top":"0px","bottom":"0px"\}\}\},"layout":\{"type":"flex"\}\} -->
<div class="wp-block-group" style="margin-top:0px;margin-bottom:0px">
<!-- wp:comment-date /-->
<!-- wp:comment-edit-link /-->
</div>
<!-- /wp:group -->
<!-- wp:comment-content /-->
<!-- wp:comment-reply-link /-->
</div>
<!-- /wp:column --></div>
<!-- /wp:columns -->
<!-- /wp:comment-template -->
<!-- wp:comments-pagination -->
<!-- wp:comments-pagination-previous /-->
<!-- wp:comments-pagination-numbers /-->
<!-- wp:comments-pagination-next /-->
<!-- /wp:comments-pagination -->
</div>
<!-- /wp:comments-query-loop -->
endsnippet
snippet wp:comment-form "<!-- wp:post-comments-form"
<!-- wp:post-comments-form /-->
endsnippet

View File

@ -40,6 +40,7 @@ local on_attach = function(client, bufnr)
local function buf_set_keymap(...) local function buf_set_keymap(...)
vim.api.nvim_buf_set_keymap(bufnr, ...) vim.api.nvim_buf_set_keymap(bufnr, ...)
end end
local function buf_set_option(...) local function buf_set_option(...)
vim.api.nvim_buf_set_option(bufnr, ...) vim.api.nvim_buf_set_option(bufnr, ...)
end end
@ -154,7 +155,7 @@ local sources = {
-- in project directory must -- in project directory must
-- composer require friendsofphp/php-cs-fixer -- composer require friendsofphp/php-cs-fixer
-- as in https://github.com/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({ null_ls.builtins.diagnostics.phpcs.with({
condition = function(utils) condition = function(utils)
return utils.root_has_file({"vendor/bin/phpcs"}) return utils.root_has_file({"vendor/bin/phpcs"})

View File

@ -229,3 +229,17 @@ KAT
scannability scannability
sympy sympy
numpy numpy
UltiSnips
Complianz
cPanel
mockups
Kadence
Pexels
WebP
Autoptomize
a3
PPH
Magento
Mohammad
CDN
Cloudfare

Binary file not shown.