add codelens and sticky headers for Dart (#1690)

This commit is contained in:
Michael 2022-11-15 19:10:44 +01:00 committed by GitHub
parent 89d44fe771
commit 36f5e22d41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 2 deletions

View File

@ -6,6 +6,8 @@
- [#1700](https://github.com/lapce/lapce/pull/1700): Add prisma syntax and highlighting
- [#1702](https://github.com/lapce/lapce/pull/1702): Improved svelte treesitter queries
- [#1690](https://github.com/lapce/lapce/pull/1690): Add codelens and sticky headers for Dart
### Bug Fixes
## 0.2.3

View File

@ -301,8 +301,16 @@ pub enum LapceLanguage {
injection: None,
comment: "//",
indent: " ",
code_lens: (DEFAULT_CODE_LENS_LIST, DEFAULT_CODE_LENS_IGNORE_LIST),
sticky_headers: &[],
code_lens: (
&["program", "class_definition"],
&[
"program",
"import_or_export",
"comment",
"documentation_comment",
],
),
sticky_headers: &["class_definition"],
extensions: &["dart"],
},
#[cfg(feature = "lang-dockerfile")]