Add hover test and tweak dismiss logic

This commit is contained in:
Keith Simmons
2022-06-09 17:03:45 -07:00
parent 1da1853a76
commit dddfc7beae
5 changed files with 410 additions and 28 deletions
+4
View File
@@ -571,6 +571,10 @@ impl Language {
&self.config.brackets
}
pub fn path_suffixes(&self) -> &[String] {
&self.config.path_suffixes
}
pub fn should_autoclose_before(&self, c: char) -> bool {
c.is_whitespace() || self.config.autoclose_before.contains(c)
}