Update generated neovim config
This commit is contained in:
11
config/neovim/store/nvim-treesitter/queries/goctl/folds.scm
Normal file
11
config/neovim/store/nvim-treesitter/queries/goctl/folds.scm
Normal file
@ -0,0 +1,11 @@
|
||||
[
|
||||
(typeGroupSpec)
|
||||
(typeSingleSpec)
|
||||
(typeStruct)
|
||||
(serviceSpec)
|
||||
(serviceBody)
|
||||
(importStatement)
|
||||
(serviceServerSpec)
|
||||
(infoStatement)
|
||||
(structType)
|
||||
] @fold
|
||||
@ -0,0 +1,79 @@
|
||||
; Key Symbol
|
||||
"=" @operator
|
||||
|
||||
[
|
||||
"."
|
||||
","
|
||||
":"
|
||||
";"
|
||||
] @punctuation.delimiter
|
||||
|
||||
[
|
||||
"("
|
||||
")"
|
||||
"{"
|
||||
"}"
|
||||
"["
|
||||
"]"
|
||||
] @punctuation.bracket
|
||||
|
||||
; Keywords
|
||||
[
|
||||
"syntax"
|
||||
"info"
|
||||
"service"
|
||||
] @keyword
|
||||
|
||||
"import" @keyword.import
|
||||
|
||||
"returns" @keyword.return
|
||||
|
||||
[
|
||||
"type"
|
||||
"struct"
|
||||
] @keyword.type
|
||||
|
||||
[
|
||||
"@doc"
|
||||
"@handler"
|
||||
"@server"
|
||||
] @attribute
|
||||
|
||||
; Service
|
||||
(serviceName) @type
|
||||
|
||||
; Httpmethod
|
||||
(HTTPMETHOD) @keyword.operator
|
||||
|
||||
; Field
|
||||
(fieldType) @type.builtin
|
||||
|
||||
(fieldName) @variable.member
|
||||
|
||||
(anonymousField) @variable.member
|
||||
|
||||
; Functions
|
||||
(handlerValue) @function.method
|
||||
|
||||
; Strings
|
||||
(VALUE) @string
|
||||
|
||||
(tag) @string.documentation
|
||||
|
||||
(PATH) @string.special.path
|
||||
|
||||
; Comments
|
||||
(comment) @comment @spell
|
||||
|
||||
(key) @variable.member
|
||||
|
||||
(identValue) @string
|
||||
|
||||
(DURATION) @number
|
||||
|
||||
(NUMBER) @number
|
||||
|
||||
; Struct
|
||||
(structNameId) @type
|
||||
|
||||
(body) @type
|
||||
@ -0,0 +1,15 @@
|
||||
[
|
||||
(importGroup)
|
||||
(typeGroupSpec)
|
||||
(structType)
|
||||
(infoStatement)
|
||||
(serviceServerSpec)
|
||||
(serviceSpec)
|
||||
] @indent.begin
|
||||
|
||||
[
|
||||
")"
|
||||
"}"
|
||||
] @indent.branch @indent.end
|
||||
|
||||
(comment) @indent.ignore
|
||||
@ -0,0 +1,3 @@
|
||||
; Inject comment language for goctl
|
||||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
Reference in New Issue
Block a user