Prove framework
Test Neovim config on push / build (ubuntu-20.04) (push) Has been cancelled Details

This commit is contained in:
Yannick Reiß 2025-06-15 14:53:46 +02:00
parent 41ec16380b
commit 5ee0540a2e
1 changed files with 11 additions and 0 deletions

View File

@ -11,8 +11,19 @@ function Prove()
local run_cmd = { "alr gnatprove" }
vim.api.nvim_buf_set_lines(0, 0, -1, false, run_cmd)
vim.cmd(":%!bash")
buffer_loaded = true
end
function Close_Prove()
if buffer_loaded then
buffer_loaded = false
vim.cmd("bd!")
end
end
vim.keymap.set("n", "pp", ":lua Close_Prove()<cr>")
-- @name setup_ada
-- @param
-- @short Verify installation of ada tools or install them.