Add lua syntax highlighting and lsp support
This commit is contained in:
parent
8be9d21340
commit
4642817e72
10 changed files with 458 additions and 3 deletions
|
@ -10,6 +10,7 @@ mod html;
|
|||
mod installation;
|
||||
mod json;
|
||||
mod language_plugin;
|
||||
mod lua;
|
||||
mod python;
|
||||
mod ruby;
|
||||
mod rust;
|
||||
|
@ -122,6 +123,11 @@ pub fn init(languages: Arc<LanguageRegistry>) {
|
|||
tree_sitter_racket::language(),
|
||||
None, //
|
||||
),
|
||||
(
|
||||
"lua",
|
||||
tree_sitter_lua::language(),
|
||||
Some(Box::new(lua::LuaLspAdapter)),
|
||||
),
|
||||
] {
|
||||
languages.register(name, load_config(name), grammar, lsp_adapter, load_queries);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue