You've already forked dotfiles
feat: Cleanup of plugins, swapping the telekasten shortcut for toggling
todo items and making changes to the build UI.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user