From 1572e264bb14da36d2e7e8f6dff822cb7215bd13 Mon Sep 17 00:00:00 2001 From: newbie Date: Tue, 21 Nov 2023 23:16:48 +0800 Subject: [PATCH] update --- lua/plugs/toggleterm.lua | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/lua/plugs/toggleterm.lua b/lua/plugs/toggleterm.lua index d312aa0..b2500db 100644 --- a/lua/plugs/toggleterm.lua +++ b/lua/plugs/toggleterm.lua @@ -1,4 +1,22 @@ return { -- amongst your other plugins - { 'akinsho/toggleterm.nvim', version = "*", config = true }, + { 'akinsho/toggleterm.nvim', + version = "*", + config = function () + require("toggleterm").setup{ + -- size can be a number or function which is passed the current terminal + size = 10, + open_mapping = [[]], + hide_numbers = true, -- hide the number column in toggleterm buffers + shade_filetypes = {}, + shade_terminals = true, + shading_factor = 1, -- the degree by which to darken to terminal colour, default: 1 for dark backgrounds, 3 for light + start_in_insert = true, + insert_mappings = true, -- whether or not the open mapping applies in insert mode + persist_size = true, + direction = 'horizontal', + } + end + }, + }