Skip to content

Commit 1e5824c

Browse files
committed
cleanup(fortran): removed duplicated opiton.
On fortran, `fpm run` will build automatically when necessary.
1 parent 720ae2b commit 1e5824c

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

lua/compiler/languages/fortran.lua

-11
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ M.options = {
77
{ text = "Run this file", value = "option1" },
88
{ text = "FPM build and run", value = "option2" },
99
{ text = "FPM build", value = "option3" },
10-
{ text = "FPM run", value = "option4" },
1110
}
1211

1312
-- Backend - overseer tasks performed on option selected
@@ -55,16 +54,6 @@ function M.action(selected_option)
5554
},},},})
5655
task:start()
5756
vim.cmd("OverseerOpen")
58-
elseif selected_option == "option4" then
59-
local task = overseer.new_task({
60-
name = "- Fortran compiler",
61-
strategy = { "orchestrator",
62-
tasks = {{ "shell", name = "- fpm run → " .. "fpm.toml",
63-
cmd = "fpm run " .. -- run
64-
" && echo '" .. final_message .. "'" -- echo
65-
},},},})
66-
task:start()
67-
vim.cmd("OverseerOpen")
6857
end
6958
end
7059

tests/tests/languages/fortran.lua

-5
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,3 @@ vim.wait(ms)
1414
vim.api.nvim_set_current_dir(example .. "fpm-build/")
1515
language.action("option3")
1616
vim.wait(ms)
17-
18-
-- Run
19-
vim.api.nvim_set_current_dir(example .. "fpm-run/")
20-
language.action("option4")
21-
vim.wait(ms)

0 commit comments

Comments
 (0)