mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-21 08:35:48 +02:00
update config custom snippets
This commit is contained in:
parent
874cacf692
commit
3a8ccb5ffb
6 changed files with 159 additions and 151 deletions
10
lua/user/snippets.lua
Normal file
10
lua/user/snippets.lua
Normal file
|
@ -0,0 +1,10 @@
|
|||
local status_ok = pcall(require, "luasnip")
|
||||
if not status_ok then
|
||||
return
|
||||
end
|
||||
|
||||
local lpath = vim.fn.stdpath("config") .. "/my-snippets"
|
||||
require("luasnip.loaders.from_vscode").lazy_load({
|
||||
paths = lpath,
|
||||
})
|
||||
require("luasnip.loaders.from_vscode").load({ paths = lpath })
|
Loading…
Add table
Add a link
Reference in a new issue