We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
.solution.toml
entry_point = "$current_buffer"
1 parent d4f7bbb commit c16eeb5Copy full SHA for c16eeb5
1 file changed
lua/compiler/utils.lua
@@ -68,6 +68,10 @@ function M.parse_solution_file(file_path)
68
key = vim.trim(key)
69
value = value:gsub("^%s*", ""):gsub(" *#.*", ""):gsub("^['\"](.-)['\"]$", "%1") -- Remove inline comments and surrounding quotes
70
71
+ if key == "entry_point" and value == "$current_buffer" then
72
+ value = vim.api.nvim_buf_get_name(0)
73
+ end
74
+
75
if string.find(key, "executable") then
76
table.insert(executables, value)
77
else
0 commit comments