1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
//! `defplugin` — Lisp-authored plugin declaration.
//!
//! Analog of `blackmatter-nvim`'s per-plugin `default.nix` bundle,
//! distilled to a pure-Rust spec. Every escriba plugin — whether
//! it's re-implementing a blnvim behaviour (oil, gitsigns, trouble,
//! lspsaga, telescope, …) or shipping new capability — declares its
//! metadata + activation surface through this form.
//!
//! ```lisp
//! (defplugin :name "trouble"
//! :description "Diagnostic + quickfix + loclist list UI"
//! :category "lsp"
//! :on-event "LspAttach"
//! :keybinds ("<leader>xx" "<leader>xw")
//! :lazy #t)
//!
//! (defplugin :name "oil"
//! :description "Edit the filesystem like a buffer"
//! :category "files"
//! :on-command "Oil"
//! :lazy #t)
//! ```
//!
//! # Fields
//!
//! - `name` — human-readable identifier, unique within the plan.
//! - `description` — one-line purpose sentence.
//! - `category` — coarse grouping mirroring blnvim's feature groups
//! (`"lsp"`, `"completion"`, `"theming"`, `"telescope"`, `"files"`,
//! `"git"`, `"treesitter"`, `"keybindings"`, `"tmux"`, `"common"`).
//! - `on-event` — optional lazy-load trigger (nvim-style autocmd
//! event — `"BufReadPost"`, `"LspAttach"`, `"InsertEnter"`).
//! - `on-command` — optional user-command trigger (plugin loads when
//! the user runs the named command).
//! - `on-filetype` — optional filetype trigger (lazy-load on entering
//! a buffer of that ft).
//! - `keybinds` — optional list of keybinding triggers (plugin loads
//! the first time any of these is pressed).
//! - `lazy` — if true, none of the above trigger? defer until the
//! first explicit load request. Combined with any of the on-*
//! fields, loads on the *union* of the triggers.
//! - `priority` — load-order hint (colorschemes use a high value so
//! they win over later theming plugins). 0 = default.
use ;
use DeriveTataraDomain;
/// Canonical blnvim categories plus escriba additions. Accepted in
/// any casing; unknown values are allowed (forward-compat with
/// user-authored categories).
pub const KNOWN_CATEGORIES: & = &;