diff options
| author | aktersnurra <gustaf@gustafrydholm.xyz> | 2026-04-16 15:10:52 +0200 |
|---|---|---|
| committer | aktersnurra <gustaf@gustafrydholm.xyz> | 2026-04-17 23:28:47 +0200 |
| commit | 152fd9d787c7433cad95795992e444250cb83216 (patch) | |
| tree | 0ae3b4a3b42005dc08b1400981cfc4c1f37297fe /fnl/plugins/snippets.fnl | |
| parent | 83a7f3505a441f1c152229d50a3d6011951a82fc (diff) | |
Add fff and other nice things such as macros
Diffstat (limited to 'fnl/plugins/snippets.fnl')
| -rw-r--r-- | fnl/plugins/snippets.fnl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fnl/plugins/snippets.fnl b/fnl/plugins/snippets.fnl index fbfaeac..c45d220 100644 --- a/fnl/plugins/snippets.fnl +++ b/fnl/plugins/snippets.fnl @@ -6,13 +6,13 @@ (let [snippets (require (.. :plugins.snippets. name))] (snippets.add-snippets))) -(local {: apply-to-files} (require :util.load)) - (λ config [] (let [ls (require :luasnip) luasnip-vscode (require :luasnip.loaders.from_vscode)] (luasnip-vscode.lazy_load) - (apply-to-files :/fnl/plugins/snippets add-snippets) + (each [fname type (vim.fs.dir (.. (vim.fn.stdpath :config) :/fnl/plugins/snippets))] + (when (= type :file) + (add-snippets (fname:match "^(.*)%.fnl$")))) (ls.config.set_config {:history true :updateevents "TextChanged,TextChangedI"}) (vim.keymap.set [:i :s] :<c-u> |