mirror of
https://github.com/d0zingcat/dotfiles.git
synced 2026-05-16 07:26:46 +00:00
mig packer to lazy and archive
Signed-off-by: d0zingcat <leewtang@gmail.com>
This commit is contained in:
15
nvim/lua/legacy/toggleterm.lua
Normal file
15
nvim/lua/legacy/toggleterm.lua
Normal file
@@ -0,0 +1,15 @@
|
||||
local g = vim.g
|
||||
local map = require('utils').map
|
||||
|
||||
map('t', '<C-]>', [[<C-\><C-n>]], { noremap = true })
|
||||
|
||||
require('toggleterm').setup({
|
||||
open_mapping = [[<C-t>]],
|
||||
size = function(term)
|
||||
if term.direction == 'horizontal' then
|
||||
return 15
|
||||
else
|
||||
return vim.o.columns * 0.3
|
||||
end
|
||||
end,
|
||||
})
|
||||
Reference in New Issue
Block a user