add sticky headers to ruby and elixir
@@ -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")]
