diff --git a/lua/compiler/utils.lua b/lua/compiler/utils.lua index cd4fc84..26203c0 100644 --- a/lua/compiler/utils.lua +++ b/lua/compiler/utils.lua @@ -68,6 +68,10 @@ function M.parse_solution_file(file_path) key = vim.trim(key) value = value:gsub("^%s*", ""):gsub(" *#.*", ""):gsub("^['\"](.-)['\"]$", "%1") -- Remove inline comments and surrounding quotes + if key == "entry_point" and value == "$current_buffer" then + value = vim.api.nvim_buf_get_name(0) + end + if string.find(key, "executable") then table.insert(executables, value) else