From 87350db15c061c99adf28973549c9150c9ba97ee Mon Sep 17 00:00:00 2001 From: tkinaba Date: Wed, 15 Apr 2026 10:55:48 -0300 Subject: [PATCH] fix: load snippets from rtp correctly --- lua/vitruvio.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lua/vitruvio.lua b/lua/vitruvio.lua index cf7c4f6..14c73cf 100644 --- a/lua/vitruvio.lua +++ b/lua/vitruvio.lua @@ -14,12 +14,10 @@ local post = function(url, file_path) end local function get_snippet_path() - -- Look for the specific file or folder within the runtimepath - -- 'vscode' is the folder name in your snippet repo - local paths = vim.api.nvim_get_runtime_file("vitruvio.code-snippets", true) + local paths = vim.api.nvim_get_runtime_file("vscode/vitruvio.code-snippets", true) if #paths > 0 then - return paths[1] -- Returns the full path to the first match found + return paths[1] end return nil end