update nvim
This commit is contained in:
parent
3338d39206
commit
786b0e0970
31 changed files with 2204 additions and 15 deletions
16
lua/phoenix/plugins/toggleterm.lua
Normal file
16
lua/phoenix/plugins/toggleterm.lua
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
local keymap = require 'phoenix.utils.keymap'
|
||||
|
||||
return {
|
||||
'akinsho/toggleterm.nvim',
|
||||
config = function()
|
||||
require('toggleterm').setup {
|
||||
open_mapping = [[<leader>tt]],
|
||||
insert_mappings = false,
|
||||
direction = 'float',
|
||||
shade_terminals = false,
|
||||
}
|
||||
|
||||
keymap('n', '<leader>tr', ':ToggleTerm 2 direction=vertical<cr>', { desc = 'Toggle terminal right' })
|
||||
keymap('n', '<leader>tb', ':ToggleTerm 3 direction=horizontal<cr>', { desc = 'Toggle terminal bottom' })
|
||||
end,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue