Skip to repository content45 lines · 1.6 KB · rust
tenant.openagents/omega
No repository description is available.
OpenAgents Git authority 2026-07-28T06:28:13.620Z Public web read
NIP-34 coordinate
30617:7649603503856e5148d571eac2766b288a8ff1e9e35d380337a1d2b0015b4f92:omegaMaintainersHidden in public view
References2 branches · 1 tag
Read-only clone
git clone https://openagents.com/git/tenant.openagents/omega.gitBrowse files
settings.rs
1use serde::{Deserialize, Serialize};
2use std::{collections::HashMap, num::NonZeroU32};
3
4/// The settings for a particular language.
5#[derive(Debug, Serialize, Deserialize)]
6pub struct LanguageSettings {
7 /// How many columns a tab should occupy.
8 pub tab_size: NonZeroU32,
9 /// Whether to indent with hard tabs (true) or spaces (false).
10 pub hard_tabs: bool,
11 /// The preferred line length (column at which to wrap).
12 pub preferred_line_length: u32,
13}
14
15/// The settings for a particular language server.
16#[derive(Default, Debug, Serialize, Deserialize)]
17pub struct LspSettings {
18 /// The settings for the language server binary.
19 pub binary: Option<CommandSettings>,
20 /// The initialization options to pass to the language server.
21 pub initialization_options: Option<serde_json::Value>,
22 /// The settings to pass to language server.
23 pub settings: Option<serde_json::Value>,
24}
25
26/// The settings for a particular context server.
27#[derive(Default, Debug, Serialize, Deserialize, PartialEq, Eq)]
28pub struct ContextServerSettings {
29 /// The settings for the context server binary.
30 pub command: Option<CommandSettings>,
31 /// The settings to pass to the context server.
32 pub settings: Option<serde_json::Value>,
33}
34
35/// The settings for a command.
36#[derive(Debug, Serialize, Deserialize, PartialEq, Eq)]
37pub struct CommandSettings {
38 /// The path to the command.
39 pub path: Option<String>,
40 /// The arguments to pass to the command.
41 pub arguments: Option<Vec<String>>,
42 /// The environment variables.
43 pub env: Option<HashMap<String, String>>,
44}
45