refactor: fixed deprecated write_file to use table instead of string for

each language in templates.projects
This commit is contained in:
DarthMooMancer committed 2025-05-12 00:41:05 -04:00
1 parent 677e5bbc67
commit 4ecaf54f82
7 files changed
+103 -106

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
-- Get absolute path to this Lua file (or any file in your plugin)
local plugin_path = debug.getinfo(1, "S").source:sub(2)
local plugin_dir = vim.fn.fnamemodify(plugin_path, ":h")
-- Build the full path to your script
local script_path = plugin_dir .. "/bash_scripts/walkup.sh"
-- Run the script and get output
local dir = vim.fn.system(script_path):gsub("%s+$", "")