feat: add nvim-mini/mini.snippets
This commit is contained in:
13
lua/plugins/mini_snippets.lua
Normal file
13
lua/plugins/mini_snippets.lua
Normal file
@@ -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)
|
||||||
Reference in New Issue
Block a user