mirror of
https://github.com/pnx/dotfiles
synced 2026-06-17 19:40:02 +02:00
big nvim update. maybe broke something
This commit is contained in:
parent
1e68462bc1
commit
8a39a1b88a
32 changed files with 531 additions and 195 deletions
23
nvim/queries/php_only/highlights.scm
Normal file
23
nvim/queries/php_only/highlights.scm
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
; inherits: php_only
|
||||
|
||||
; php tags should be tagged as preprocessor tokens
|
||||
(php_tag) @preproc
|
||||
|
||||
; Tag names in class definition as regular text.
|
||||
(class_declaration [
|
||||
name: (name) @class_name
|
||||
(base_clause (name) @extend_name)
|
||||
(class_interface_clause (name) @implement_name)
|
||||
])
|
||||
|
||||
; tag "use" traits as text
|
||||
(use_declaration (name) @text)
|
||||
|
||||
; tag namespace classes in "use" as text
|
||||
(namespace_use_declaration (namespace_use_clause [
|
||||
(qualified_name [
|
||||
(name) @namespace_name
|
||||
(namespace_name_as_prefix (namespace_name (name) @namespace_name))
|
||||
])
|
||||
(namespace_aliasing_clause (name) @namespace_alias)
|
||||
]))
|
||||
9
nvim/queries/php_only/indents.scm
Normal file
9
nvim/queries/php_only/indents.scm
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
; extends
|
||||
|
||||
; Fix for phpdoc comments that don't align * properly.
|
||||
; This is black magic. I came up with it myself but
|
||||
; i don't know why it works.
|
||||
(ERROR
|
||||
"/"
|
||||
"**"
|
||||
@indent.align)
|
||||
Loading…
Add table
Add a link
Reference in a new issue