Skip to content

Commit

Permalink
cleanup(fortran): removed duplicated opiton.
Browse files Browse the repository at this point in the history
On fortran, `fpm run` will build automatically when necessary.
  • Loading branch information
Zeioth committed May 26, 2024
1 parent 720ae2b commit 1e5824c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
11 changes: 0 additions & 11 deletions lua/compiler/languages/fortran.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ M.options = {
{ text = "Run this file", value = "option1" },
{ text = "FPM build and run", value = "option2" },
{ text = "FPM build", value = "option3" },
{ text = "FPM run", value = "option4" },
}

-- Backend - overseer tasks performed on option selected
Expand Down Expand Up @@ -55,16 +54,6 @@ function M.action(selected_option)
},},},})
task:start()
vim.cmd("OverseerOpen")
elseif selected_option == "option4" then
local task = overseer.new_task({
name = "- Fortran compiler",
strategy = { "orchestrator",
tasks = {{ "shell", name = "- fpm run → " .. "fpm.toml",
cmd = "fpm run " .. -- run
" && echo '" .. final_message .. "'" -- echo
},},},})
task:start()
vim.cmd("OverseerOpen")
end
end

Expand Down
5 changes: 0 additions & 5 deletions tests/tests/languages/fortran.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,3 @@ vim.wait(ms)
vim.api.nvim_set_current_dir(example .. "fpm-build/")
language.action("option3")
vim.wait(ms)

-- Run
vim.api.nvim_set_current_dir(example .. "fpm-run/")
language.action("option4")
vim.wait(ms)

0 comments on commit 1e5824c

Please sign in to comment.