Feat: add hover boxes and diagnostics from lsp

This commit is contained in:
2025-12-29 15:56:51 +00:00
parent 6108f78be3
commit c7068d33d7
31 changed files with 1782 additions and 183 deletions

23
grammar/man.scm Normal file
View File

@@ -0,0 +1,23 @@
;; #82AAFF #000000 1 0 1 2
(title) @markup.heading.1
;; #ccefc9 #000000 0 0 0 0
(section_title) @markup.heading.2
;; #FF8F40 #000000 1 0 0 2
(subsection_title) @markup.heading.3
;; #AAD94C #000000 0 0 0 3
(option) @variable.parameter
;; #FFD700 #000000 1 0 0 3
(reference) @markup.link.label
;; #C792EA #000000 0 0 0 3
(footer) @markup.heading
(section_heading
(section_title) @_title
;; #FFD700 #000000 1 0 0 1
(block) @injection.content
(#match? @_title "SYNOPSIS"))