add sticky headers to ruby and elixir (#1424)

This commit is contained in:
Stanislav Lapata 2022-10-01 22:13:36 +02:00 committed by GitHub
parent e760dce788
commit e715adf14f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -318,7 +318,7 @@ pub enum LapceLanguage {
comment: "#",
indent: " ",
code_lens: (DEFAULT_CODE_LENS_LIST, DEFAULT_CODE_LENS_IGNORE_LIST),
sticky_headers: &[],
sticky_headers: &["do_block"],
extensions: &["ex", "exs", "eex", "heex", "sface"],
},
#[cfg(feature = "lang-elm")]
@ -652,7 +652,8 @@ pub enum LapceLanguage {
comment: "#",
indent: " ",
code_lens: (DEFAULT_CODE_LENS_LIST, DEFAULT_CODE_LENS_IGNORE_LIST),
sticky_headers: &[],
sticky_headers: &["module", "class", "method", "do_block"],
extensions: &["rb"],
},
#[cfg(feature = "lang-rust")]