From ab8abc7f22d2345690b469a5e3bde9f3d63ac180 Mon Sep 17 00:00:00 2001 From: "Vito G. Graffagnino" Date: Sat, 8 Oct 2022 11:57:32 +0100 Subject: Fixed orgmode error message relating to treesitter. Added another latex template. Tidied up a number of other files --- lua/user/toggleterm.lua | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'lua/user/toggleterm.lua') diff --git a/lua/user/toggleterm.lua b/lua/user/toggleterm.lua index c08f5d0..7342573 100644 --- a/lua/user/toggleterm.lua +++ b/lua/user/toggleterm.lua @@ -4,7 +4,13 @@ if not status_ok then end toggleterm.setup({ - size = 20, + size = function(term) + if term.direction == "horizontal" then + return 20 + elseif term.direction == "vertical" then + return vim.o.columns * 0.45 + end + end, open_mapping = [[]], hide_numbers = true, shade_filetypes = {}, @@ -13,7 +19,7 @@ toggleterm.setup({ start_in_insert = true, insert_mappings = true, persist_size = true, - direction = "float", + direction = "vertical", close_on_exit = true, shell = vim.o.shell, float_opts = { -- cgit v1.2.3