Add auto-completion support for snippet files (#23698)
Release Notes: - Added auto-completion support for snippet files. 
This commit is contained in:
parent
6e9ea47849
commit
6293b20fd0
7 changed files with 64 additions and 5 deletions
|
@ -189,6 +189,12 @@ pub fn themes_dir() -> &'static PathBuf {
|
|||
THEMES_DIR.get_or_init(|| config_dir().join("themes"))
|
||||
}
|
||||
|
||||
/// Returns the path to the snippets directory.
|
||||
pub fn snippets_dir() -> &'static PathBuf {
|
||||
static SNIPPETS_DIR: OnceLock<PathBuf> = OnceLock::new();
|
||||
SNIPPETS_DIR.get_or_init(|| config_dir().join("snippets"))
|
||||
}
|
||||
|
||||
/// Returns the path to the contexts directory.
|
||||
///
|
||||
/// This is where the saved contexts from the Assistant are stored.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue