mirror of https://github.com/lapce/lapce.git
add sticky headers for C and C++ (#1377)
* add sticky headers for C and C++ * run rustfmt
This commit is contained in:
parent
d14664b21f
commit
feb30c9ff4
|
@ -354,7 +354,7 @@ pub enum LapceLanguage {
|
||||||
comment: "//",
|
comment: "//",
|
||||||
indent: " ",
|
indent: " ",
|
||||||
code_lens: (DEFAULT_CODE_LENS_LIST, DEFAULT_CODE_LENS_IGNORE_LIST),
|
code_lens: (DEFAULT_CODE_LENS_LIST, DEFAULT_CODE_LENS_IGNORE_LIST),
|
||||||
sticky_headers: &[],
|
sticky_headers: &["function_definition", "struct_specifier"],
|
||||||
extensions: &["c", "h"],
|
extensions: &["c", "h"],
|
||||||
},
|
},
|
||||||
#[cfg(feature = "lang-cpp")]
|
#[cfg(feature = "lang-cpp")]
|
||||||
|
@ -366,7 +366,11 @@ pub enum LapceLanguage {
|
||||||
comment: "//",
|
comment: "//",
|
||||||
indent: " ",
|
indent: " ",
|
||||||
code_lens: (DEFAULT_CODE_LENS_LIST, DEFAULT_CODE_LENS_IGNORE_LIST),
|
code_lens: (DEFAULT_CODE_LENS_LIST, DEFAULT_CODE_LENS_IGNORE_LIST),
|
||||||
sticky_headers: &[],
|
sticky_headers: &[
|
||||||
|
"function_definition",
|
||||||
|
"class_specifier",
|
||||||
|
"struct_specifier",
|
||||||
|
],
|
||||||
extensions: &["cpp", "cxx", "cc", "c++", "hpp", "hxx", "hh", "h++"],
|
extensions: &["cpp", "cxx", "cc", "c++", "hpp", "hxx", "hh", "h++"],
|
||||||
},
|
},
|
||||||
#[cfg(feature = "lang-json")]
|
#[cfg(feature = "lang-json")]
|
||||||
|
|
Loading…
Reference in New Issue