blob: 140d9b2f3be0134b53b54d66e56577a8d536afe4 (
plain)
1
2
3
4
5
6
7
8
9
10
|
-- Somewhere in your Neovim startup, e.g. init.lua
require("luasnip").config.set_config({ -- Setting LuaSnip config
enable_autosnippets = true,
store_selection_keys = "<Tab>",
region_check_events = 'InsertEnter',
delete_check_events = 'InsertLeave'
})
-- Load all snippets from the nvim/LuaSnip directory at startup
require("luasnip.loaders.from_lua").load({paths = "~/.config/nvim/snips/"})
|