From ed46f1c5e82709417085b1a3b7708b209c5f4bfe Mon Sep 17 00:00:00 2001 From: ottjk Date: Sat, 30 Dec 2023 19:23:04 -0500 Subject: initial commit --- nvim/after/plugin/luasnip.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 nvim/after/plugin/luasnip.lua (limited to 'nvim/after/plugin/luasnip.lua') diff --git a/nvim/after/plugin/luasnip.lua b/nvim/after/plugin/luasnip.lua new file mode 100644 index 0000000..140d9b2 --- /dev/null +++ b/nvim/after/plugin/luasnip.lua @@ -0,0 +1,10 @@ +-- Somewhere in your Neovim startup, e.g. init.lua +require("luasnip").config.set_config({ -- Setting LuaSnip config + enable_autosnippets = true, + store_selection_keys = "", + 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/"}) -- cgit v1.3