From 1e5824c9566d4902ae71be58391fc4bf8412dcb3 Mon Sep 17 00:00:00 2001 From: Zeioth Date: Sun, 26 May 2024 23:48:02 +0200 Subject: [PATCH] cleanup(fortran): removed duplicated opiton. On fortran, `fpm run` will build automatically when necessary. --- lua/compiler/languages/fortran.lua | 11 ----------- tests/tests/languages/fortran.lua | 5 ----- 2 files changed, 16 deletions(-) diff --git a/lua/compiler/languages/fortran.lua b/lua/compiler/languages/fortran.lua index eb9b50c..c6b1e34 100644 --- a/lua/compiler/languages/fortran.lua +++ b/lua/compiler/languages/fortran.lua @@ -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 @@ -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 diff --git a/tests/tests/languages/fortran.lua b/tests/tests/languages/fortran.lua index 459e3b1..48b3334 100644 --- a/tests/tests/languages/fortran.lua +++ b/tests/tests/languages/fortran.lua @@ -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)