Added toggle-term plugin for neovim

This commit is contained in:
Michael Housh
2023-09-23 23:58:32 -04:00
parent 433c6cf59f
commit 7673963158
3 changed files with 17 additions and 6 deletions

View File

@@ -6,6 +6,18 @@ o.tabstop = 2
o.softtabstop = 2
o.shiftwidth = 2
keymap('n', '<C-b>', '<cmd>!swift build<CR>', default_options)
keymap('n', '<C-T>', '<cmd>!swift test<CR>', default_options)
local Terminal = require("toggleterm.terminal").Terminal
local swifttest = Terminal:new({
cmd = "swift test",
hidden = true,
close_on_exit = false,
})
function _SWIFT_TEST_TOGGLE()
swifttest:toggle()
end
keymap('n', '<C-b>', '<cmd>!swift build<CR>', default_options)
keymap('n', '<C-u>', ':lua _SWIFT_TEST_TOGGLE()<CR>', default_options)

View File

@@ -28,6 +28,7 @@
"plenary.nvim": { "branch": "master", "commit": "9ce85b0f7dcfe5358c0be937ad23e456907d410b" },
"telescope-fzf-native.nvim": { "branch": "main", "commit": "6c921ca12321edaa773e324ef64ea301a1d0da62" },
"telescope.nvim": { "branch": "0.1.x", "commit": "54930e1abfc94409e1bb9266e752ef8379008592" },
"toggleterm.nvim": { "branch": "main", "commit": "0427b908ebefcb3701c7f2cfbdafa37d11afe71a" },
"vim-vsnip": { "branch": "master", "commit": "be277461265f1e5c7db470aa479f30956597ea9e" },
"which-key.nvim": { "branch": "main", "commit": "7ccf476ebe0445a741b64e36c78a682c1c6118b7" }
}