on master help sign in
Add new format configs for Rust and C/C++
774ab6fDmitry Sharshakov
languages.toml+36
@@ -20,6 +20,18 @@ config = """
20language-server = { command = "rust-analyzer" }
20language-server = { command = "rust-analyzer" }
21indent = { tab-width = 4, unit = " " }
21indent = { tab-width = 4, unit = " " }
22
22
23+[language.debugger]
24+name = "lldb"
25+transport = "tcp"
26+command = "lldb-vscode"
27+args = []
28+port-arg = "-p {}"
29+
30+[[language.debugger.templates]]
31+name = "binary"
32+request = "launch"
33+args = { console = "internalConsole", program = "target/debug/rustdebug" }
34+
23[[language]]
35[[language]]
24name = "toml"
36name = "toml"
25scope = "source.toml"
37scope = "source.toml"
@@ -70,6 +82,18 @@ comment-token = "//"
70language-server = { command = "clangd" }
82language-server = { command = "clangd" }
71indent = { tab-width = 2, unit = " " }
83indent = { tab-width = 2, unit = " " }
72
84
85+[language.debugger]
86+name = "lldb"
87+transport = "tcp"
88+command = "lldb-vscode"
89+args = []
90+port-arg = "-p {}"
91+
92+[[language.debugger.templates]]
93+name = "binary"
94+request = "launch"
95+args = { console = "internalConsole", program = "main" }
96+
73[[language]]
97[[language]]
74name = "cpp"
98name = "cpp"
75scope = "source.cpp"
99scope = "source.cpp"
@@ -81,6 +105,18 @@ comment-token = "//"
81language-server = { command = "clangd" }
105language-server = { command = "clangd" }
82indent = { tab-width = 2, unit = " " }
106indent = { tab-width = 2, unit = " " }
83
107
108+[language.debugger]
109+name = "lldb"
110+transport = "tcp"
111+command = "lldb-vscode"
112+args = []
113+port-arg = "-p {}"
114+
115+[[language.debugger.templates]]
116+name = "binary"
117+request = "launch"
118+args = { console = "internalConsole", program = "main" }
119+
84[[language]]
120[[language]]
85name = "go"
121name = "go"
86scope = "source.go"
122scope = "source.go"