auto_lsp_server/
options.rs

1/*
2This file is part of auto-lsp.
3Copyright (C) 2025 CLAUZEL Adrien
4
5auto-lsp is free software: you can redistribute it and/or modify
6it under the terms of the GNU General Public License as published by
7the Free Software Foundation, either version 3 of the License, or
8(at your option) any later version.
9
10This program is distributed in the hope that it will be useful,
11but WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13GNU General Public License for more details.
14
15You should have received a copy of the GNU General Public License
16along with this program.  If not, see <http://www.gnu.org/licenses/>
17*/
18
19use std::collections::HashMap;
20
21use auto_lsp_core::parsers::Parsers;
22use lsp_types::{
23    ServerCapabilities, ServerInfo,
24};
25
26/// Initialization options for the LSP server
27pub struct InitOptions {
28    pub parsers: &'static HashMap<&'static str, Parsers>,
29    pub capabilities: ServerCapabilities,
30    pub server_info: Option<ServerInfo>,
31}