Skip to content

Commit

Permalink
enhance support for PKGBUILDS
Browse files Browse the repository at this point in the history
  • Loading branch information
c0rydoras committed Mar 17, 2024
1 parent 6fea787 commit 31a4a10
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 1 deletion.
14 changes: 13 additions & 1 deletion languages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ yaml-language-server = { command = "yaml-language-server", args = ["--stdio"] }
zls = { command = "zls" }
blueprint-compiler = { command = "blueprint-compiler", args = ["lsp"] }
typst-lsp = { command = "typst-lsp" }
pkgbuild-language-server = { command = "pkgbuild-language-server" }

[language-server.ansible-language-server]
command = "ansible-language-server"
Expand Down Expand Up @@ -898,7 +899,6 @@ file-types = [
{ glob = ".zshrc" },
{ glob = ".zimrc" },
{ glob = "APKBUILD" },
{ glob = "PKGBUILD" },
{ glob = ".bash_aliases" },
{ glob = ".Renviron" },
{ glob = ".xprofile" },
Expand Down Expand Up @@ -3284,3 +3284,15 @@ indent = { tab-width = 2, unit = " " }
[[grammar]]
name = "ld"
source = { git = "https://github.com/mtoohey31/tree-sitter-ld", rev = "81978cde3844bfc199851e39c80a20ec6444d35e" }

[[language]]
name = "pkgbuild"
scope = "source.bash"
file-types = [{ glob = "PKGBUILD" }]
grammar = "bash"
language-servers = [
"pkgbuild-language-server",
{ except-features = [
"diagnostics",
], name = "bash-language-server" },
]
1 change: 1 addition & 0 deletions runtime/queries/pkgbuild/highlights.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
; inherits: bash
1 change: 1 addition & 0 deletions runtime/queries/pkgbuild/indents.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
; inherits: bash
1 change: 1 addition & 0 deletions runtime/queries/pkgbuild/injections.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
; inherits: bash
1 change: 1 addition & 0 deletions runtime/queries/pkgbuild/textobjects.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
; inherits: bash

0 comments on commit 31a4a10

Please sign in to comment.