feat: add nvim-mini/mini.snippets
This commit is contained in:
parent
4e3a26a802
commit
dee450cff7
|
@ -0,0 +1,13 @@
|
||||||
|
MiniDeps.later(function()
|
||||||
|
local gen_loader = require("mini.snippets").gen_loader
|
||||||
|
require("mini.snippets").setup({
|
||||||
|
snippets = {
|
||||||
|
-- Load custom file with global snippets first (adjust for Windows)
|
||||||
|
gen_loader.from_file("~/.config/nvim/snippets/global.json"),
|
||||||
|
|
||||||
|
-- Load snippets based on current language by reading files from
|
||||||
|
-- "snippets/" subdirectories from 'runtimepath' directories.
|
||||||
|
gen_loader.from_lang(),
|
||||||
|
},
|
||||||
|
})
|
||||||
|
end)
|
Loading…
Reference in New Issue