mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-21 08:35:48 +02:00
enc: add snippet path config
This commit is contained in:
parent
9aebda6491
commit
5f97594d62
5 changed files with 149 additions and 148 deletions
|
@ -20,7 +20,7 @@
|
|||
"code_runner.nvim": { "branch": "main", "commit": "dcedccbf969a0f3bc00db446172b4966e83101dd" },
|
||||
"codeium.vim": { "branch": "main", "commit": "8c01979323b2b480c8bf160d3ff85bd1668baa49" },
|
||||
"conform.nvim": { "branch": "master", "commit": "d28ccf945374edd9f1c34a82f6c22261dbd8ab98" },
|
||||
"dressing.nvim": { "branch": "master", "commit": "c334ac73e031f0dc93d6d91f3658ee75b8be1d3b" },
|
||||
"dressing.nvim": { "branch": "master", "commit": "6ef1ca479d37d4ff66f13eed44d08912caff483a" },
|
||||
"friendly-snippets": { "branch": "main", "commit": "de8fce94985873666bd9712ea3e49ee17aadb1ed" },
|
||||
"gitsigns.nvim": { "branch": "main", "commit": "4daf7022f1481edf1e8fb9947df13bb07c18e89a" },
|
||||
"indent-blankline.nvim": { "branch": "master", "commit": "04e44b09ee3ff189c69ab082edac1ef7ae2e256c" },
|
||||
|
|
|
@ -67,3 +67,4 @@ pcode.themes = {
|
|||
-- activate config transparent_bg
|
||||
pcode.transparent = false
|
||||
pcode.localcode = true
|
||||
pcode.snippets_path = vim.fn.stdpath("config") .. "/mysnippets"
|
||||
|
|
|
@ -3,6 +3,6 @@ if not status_ok then
|
|||
return
|
||||
end
|
||||
|
||||
local lpath = vim.fn.stdpath("config") .. "/snippets"
|
||||
local lpath = pcode.snippets_path or vim.fn.stdpath("config") .. "/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