2024-09-07 23:50:39 +00:00
|
|
|
local K = require('core.keymap')
|
|
|
|
|
2024-07-02 21:52:43 +00:00
|
|
|
return {
|
2024-11-23 16:55:23 +00:00
|
|
|
'akinsho/toggleterm.nvim',
|
2024-07-02 21:52:43 +00:00
|
|
|
config = function()
|
2024-11-23 16:55:23 +00:00
|
|
|
local terminal = require('toggleterm')
|
|
|
|
terminal.setup()
|
2024-07-02 21:52:43 +00:00
|
|
|
|
|
|
|
vim.keymap.set(
|
2024-09-07 23:50:39 +00:00
|
|
|
K.TOGGLE_TERMINAL.mode,
|
|
|
|
K.TOGGLE_TERMINAL.shortcut,
|
2024-11-23 16:55:23 +00:00
|
|
|
terminal.toggle,
|
2024-09-07 23:50:39 +00:00
|
|
|
{ desc = K.TOGGLE_TERMINAL.description }
|
2024-07-02 21:52:43 +00:00
|
|
|
)
|
|
|
|
end,
|
|
|
|
}
|