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'