chore: remove nvim support

This commit is contained in:
2026-03-11 14:55:36 +02:00
parent 356820577e
commit 48e47a6655
8 changed files with 12 additions and 139 deletions

View File

@@ -10,10 +10,6 @@
module.exports = grammar({ module.exports = grammar({
name: "bruno", name: "bruno",
extras: (_) => [/\s+|(\r?\n)/],
externals: ($) => [$.rawtext],
rules: { rules: {
source_file: ($) => source_file: ($) =>
repeat( repeat(

View File

@@ -1,11 +0,0 @@
vim.filetype.add({
extension = { bru = "bruno" },
})
require("nvim-treesitter.parsers").get_parser_configs().bruno = {
install_info = {
url = "https://github.com/kristoferssolo/tree-sitter-bruno",
files = { "src/parser.c", "src/scanner.c" },
branch = "main",
},
}

View File

@@ -1,3 +0,0 @@
(dictionary) @fold
(array) @fold
(textblock) @fold

View File

@@ -1,17 +0,0 @@
(keyword) @keyword
[
"{"
"}"
"["
"]"
] @punctuation.bracket
":" @punctuation.delimiter
(key) @type
[
(value)
(array_value)
] @string
(ERROR) @error

View File

@@ -1,10 +0,0 @@
(dictionary) @indent.begin
(dictionary
"}" @indent.end)
"}" @indent.branch
(textblock) @indent.begin
(textblock
"}" @indent.end)
"}" @indent.branch

View File

@@ -1,59 +0,0 @@
((body
(keyword)
(textblock
(rawtext) @injection.content))
(#set! injection.language "json"))
((bodyjson
(keyword)
(textblock
(rawtext) @injection.content))
(#set! injection.language "json"))
((bodyxml
(keyword)
(textblock
(rawtext) @injection.content))
(#set! injection.language "xml"))
((bodysparql
(keyword)
(textblock
(rawtext) @injection.content))
(#set! injection.language "sparql"))
((bodygraphql
(keyword)
(textblock
(rawtext) @injection.content))
(#set! injection.language "graphql"))
((bodygraphqlvars
(keyword)
(textblock
(rawtext) @injection.content))
(#set! injection.language "json"))
((scriptres
(keyword)
(textblock
(rawtext) @injection.content))
(#set! injection.language "javascript"))
((scriptreq
(keyword)
(textblock
(rawtext) @injection.content))
(#set! injection.language "javascript"))
((tests
(keyword)
(textblock
(rawtext) @injection.content))
(#set! injection.language "javascript"))
((docs
(keyword)
(textblock
(rawtext) @injection.content))
(#set! injection.language "markdown"))

View File

@@ -1,12 +0,0 @@
(source_file) @tag.root
(meta) @tag.meta
(http) @tag.http
(query) @tag.query
(headers) @tag.headers
(auths) @tag.auths
(bodies) @tag.bodies
(varsandassert) @tag.varsandassert
(script) @tag.script
(tests) @tag.tests
(docs) @tag.docs

View File

@@ -1,35 +1,22 @@
{ {
"$schema": "https://tree-sitter.github.io/tree-sitter/assets/schemas/config.schema.json",
"grammars": [ "grammars": [
{ {
"name": "bruno", "name": "bruno",
"camelcase": "Bruno", "camelcase": "Bruno",
"title": "Bruno",
"scope": "source.bruno", "scope": "source.bruno",
"path": ".",
"file-types": [ "file-types": [
"bru" "bru"
], ],
"injection-regex": "^bruno$", "injection-regex": "^bruno$",
"highlights": [ "class-name": "TreeSitterBruno"
"queries/bruno/highlights.scm"
],
"injections": [
"queries/bruno/injections.scm"
],
"tags": [
"queries/bruno/tags.scm"
],
"folds": [
"queries/bruno/folds.scm"
],
"indents": [
"queries/bruno/folds.scm"
]
} }
], ],
"metadata": { "metadata": {
"version": "0.1.0", "version": "0.1.0",
"license": "MIT", "license": "MIT",
"description": " Bruno grammar for tree-sitter", "description": "Bruno grammar for tree-sitter",
"authors": [ "authors": [
{ {
"name": "Kristofers Solo", "name": "Kristofers Solo",
@@ -37,7 +24,7 @@
} }
], ],
"links": { "links": {
"repository": "https://github.com/kristoferssolo/tree-sitter-bruno" "repository": "https://codeberg.org/kristoferssolo/tree-sitter-bruno"
} }
}, },
"bindings": { "bindings": {
@@ -46,6 +33,8 @@
"node": true, "node": true,
"python": true, "python": true,
"rust": true, "rust": true,
"swift": true "swift": true,
"zig": false
} }
} }