diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2024-07-29 00:52:43 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2024-07-29 00:52:43 +0200 |
commit | acdd91aca61e5d8b8653cd90cbfbee01f6fb6fca (patch) | |
tree | 747b31a607cbfbaafb3703bf2ea3794aeb7402d6 /fnl/plugins | |
parent | f048e7a0042c10885ee37301464febc8c8f63e96 (diff) |
Refactor
Diffstat (limited to 'fnl/plugins')
-rw-r--r-- | fnl/plugins/snippets.fnl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fnl/plugins/snippets.fnl b/fnl/plugins/snippets.fnl index 569af44..44c8a2d 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 {: load-and-apply} (require :util.load)) +(local {: apply-to-files} (require :util.load)) (λ config [] (let [ls (require :luasnip) luasnip-vscode (require :luasnip.loaders.from_vscode)] (luasnip-vscode.lazy_load) - (load-and-apply :/fnl/plugins/snippets add-snippets) + (apply-to-files :/fnl/plugins/snippets add-snippets) (ls.config.set_config {:history false :updateevents "TextChanged,TextChangedI"}) (vim.keymap.set [:i :s] :<c-u> |