From 99a7ff44cdf70d028ef6aab26224f26f69ee528d Mon Sep 17 00:00:00 2001 From: aktersnurra Date: Thu, 16 Apr 2026 15:10:52 +0200 Subject: Add fff and other nice things such as macros --- fnl/plugins/snippets.fnl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'fnl/plugins/snippets.fnl') 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] : -- cgit v1.2.3-70-g09d2