working
This commit is contained in:
parent
5bdde24dfb
commit
dd1d1bb6e9
49 changed files with 2444 additions and 1322 deletions
13
lua/plugins/toggleterm.lua
Normal file
13
lua/plugins/toggleterm.lua
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
return {
|
||||
'akinsho/toggleterm.nvim',
|
||||
version = '*',
|
||||
config = function()
|
||||
require('toggleterm').setup {
|
||||
direction = 'float', -- Opens a floating terminal
|
||||
shell = vim.o.shell, -- Uses the default shell
|
||||
}
|
||||
-- Keymap to open terminal with Ctrl+/
|
||||
vim.keymap.set('n', '<C-y>', '<Cmd>ToggleTerm direction=float<CR>', { noremap = true, silent = true })
|
||||
vim.keymap.set('t', '<C-y>', '<Cmd>ToggleTerm<CR>', { noremap = true, silent = true })
|
||||
end,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue