Dotfiles_nvim/lua/editor/terminal.lua

17 lines
374 B
Lua
Raw Normal View History

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