feat: Cleanup of plugins, swapping the telekasten shortcut for toggling

todo items and making changes to the build UI.
This commit is contained in:
2026-05-19 04:10:44 -05:00
parent f8836d1f49
commit 905fd8fc43
4 changed files with 7 additions and 15 deletions

View File

@@ -1,11 +1,3 @@
-- 'softrequire' provides a wrapper around the builtin require. If the require has failed in a `local mod = softrequire('m') call, a quick check of
-- 'if mod then' can wrap code dependent upon the require, and fails gracefully
-- local function softrequire(m)
-- local ok, err = pcall(require, m)
-- if not ok then return nil, err end
-- return err
-- end
return {
execute = function(type)
local command_table = {
@@ -18,9 +10,9 @@ return {
rust = 'cargo run',
},
test = {
cpp = 'make test',
python = 'pytest',
rust = 'cargo test',
cpp = 'make test',
},
benchmark = {
rust = 'cargo bench',
@@ -33,7 +25,7 @@ return {
local command = command_table[type][vim.bo.filetype]
if command ~= nil then
vim.cmd('FloatermNew --autoclose=0 ' .. command)
vim.cmd('FloatermNew --autoclose=0 --height=0.9 --width=0.9 ' .. command)
end
end
}