From b815bb2046fae8eb23b9ac65cde4381cd0d34bea Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Sat, 5 Apr 2025 15:00:07 -0400 Subject: [PATCH] AutoYADM commit: 2025-04-05 15:00:07 --- .config/helix/.gitignore | 2 ++ .config/helix/external-snippets.toml | 12 ++++++++++++ .config/helix/snippets/python.toml | 5 +++++ 3 files changed, 19 insertions(+) create mode 100644 .config/helix/snippets/python.toml diff --git a/.config/helix/.gitignore b/.config/helix/.gitignore index b14072e5..437b49db 100644 --- a/.config/helix/.gitignore +++ b/.config/helix/.gitignore @@ -1 +1,3 @@ runtime/grammars/ +external-snippets/ +external-snippets/** diff --git a/.config/helix/external-snippets.toml b/.config/helix/external-snippets.toml index 8c41bfdc..5f44451c 100644 --- a/.config/helix/external-snippets.toml +++ b/.config/helix/external-snippets.toml @@ -6,6 +6,15 @@ git = "https://github.com/rafamadriz/friendly-snippets.git" scope = ["python"] path = "snippets/python/python.json" [[sources.paths]] +scope = ["python"] +path = "snippets/python/comprehension.json" +[[sources.paths]] +scope = ["python"] +path = "snippets/python/unittest.json" +[[sources.paths]] +scope = ["python"] +path = "snippets/python/pydoc.json" +[[sources.paths]] scope = ["rust"] path = "snippets/rust/rust.json" [[sources.paths]] @@ -15,4 +24,7 @@ path = "snippets/markdown.json" scope = ["go"] path = "snippets/go.json" [[sources.paths]] +scope = ["html"] +path = "snippets/html.json" +[[sources.paths]] path = "snippets/loremipsum.json" diff --git a/.config/helix/snippets/python.toml b/.config/helix/snippets/python.toml new file mode 100644 index 00000000..3712ec18 --- /dev/null +++ b/.config/helix/snippets/python.toml @@ -0,0 +1,5 @@ +[[snippets]] +prefix = "ld" +scope = ["python"] +body = 'log.debug("$1")' +description = 'Debug log level'