darkrc/vim/plugin/snip.lua

8 lines
177 B
Lua
Raw Permalink Normal View History

2024-02-02 13:07:36 +00:00
require "snip"
for _, path in ipairs(vim.api.nvim__get_runtime({"snip/snippets.lua"}, true, {})) do
local code = io.open(path):read("*a")
if code then
dofile(path)
end
end