diff options
| author | Vito G. Graffagnino <vito@graffagnino.xyz> | 2022-10-08 11:57:32 +0100 |
|---|---|---|
| committer | Vito G. Graffagnino <vito@graffagnino.xyz> | 2022-10-08 11:57:32 +0100 |
| commit | ab8abc7f22d2345690b469a5e3bde9f3d63ac180 (patch) | |
| tree | 8034ed8a16e9712f9f244a3d0ffc26466defa2de /lua/user/toggleterm.lua | |
| parent | 02af2c0299b923946092a49cdbae20ba837cb4be (diff) | |
Fixed orgmode error message relating to treesitter. Added another latex
template. Tidied up a number of other files
Diffstat (limited to 'lua/user/toggleterm.lua')
| -rw-r--r-- | lua/user/toggleterm.lua | 10 |
1 files changed, 8 insertions, 2 deletions
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 = [[<c-\>]], 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 = { |
