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

@@ -1,5 +1,5 @@
/**
* @file Bruno grammar for tree-sitter
* @file Bruno grammar for tree-sitter
* @author Kristofers Solo <dev@kristofers.xyz>
* @license MIT
*/
@@ -8,13 +8,9 @@
// @ts-check
module.exports = grammar({
name: "bruno",
name: "bruno",
extras: (_) => [/\s+|(\r?\n)/],
externals: ($) => [$.rawtext],
rules: {
rules: {
source_file: ($) =>
repeat(
field(
@@ -129,5 +125,5 @@ module.exports = grammar({
key: (_) => /[^\s\r\n:]+/,
value: (_) => /[^\r\n]*/,
},
},
});

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