diff options
| author | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2022-03-29 20:17:17 +0200 |
|---|---|---|
| committer | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2022-03-29 20:17:42 +0200 |
| commit | 039d5fb86fc3c0834ede3b20b9ddf000d79a71b8 (patch) | |
| tree | af17dde047c398f14d90e4b9fb356af5c1be5352 /after/plugin/luasnip.lua | |
| parent | d507c50398a5a730715e5b05fb822e1743cb6157 (diff) | |
| download | nvim-conf-039d5fb86fc3c0834ede3b20b9ddf000d79a71b8.tar.gz nvim-conf-039d5fb86fc3c0834ede3b20b9ddf000d79a71b8.zip | |
Fix snippets
Diffstat (limited to 'after/plugin/luasnip.lua')
| -rw-r--r-- | after/plugin/luasnip.lua | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/after/plugin/luasnip.lua b/after/plugin/luasnip.lua index 532307e..65d3dcb 100644 --- a/after/plugin/luasnip.lua +++ b/after/plugin/luasnip.lua @@ -95,16 +95,11 @@ local make = function(tbl) return result end - - -local snippets = {} - for _, ft_path in ipairs(vim.api.nvim_get_runtime_file("lua/alpha/snips/ft/*.lua", true)) do local ft = vim.fn.fnamemodify(ft_path, ":t:r") - snippets[ft] = make(loadfile(ft_path)()) + ls.add_snippets(ft, make(loadfile(ft_path)())) end -ls.snippets = snippets -- <c-k> is my expansion key -- this will expand the current item or jump to the next item within the snippet. |