From 3adaeadd988c6b75e0fc5ddadc280731ac83af57 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Mon, 12 Sep 2022 02:02:51 -0500 Subject: [PATCH] refactor(nvim): use float for toggleterm --- .../primary/config/lua/plugins/plugins.lua | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/dots/.nvim-environments/primary/config/lua/plugins/plugins.lua b/dots/.nvim-environments/primary/config/lua/plugins/plugins.lua index 324abadf..4b557da1 100755 --- a/dots/.nvim-environments/primary/config/lua/plugins/plugins.lua +++ b/dots/.nvim-environments/primary/config/lua/plugins/plugins.lua @@ -769,15 +769,8 @@ return packer.startup({ config = function() require("toggleterm").setup({ start_in_insert = false, - direction = "vertical", + direction = "float", autochdir = true, - size = function(term) - if term.direction == "vertical" then - return vim.o.columns * 0.5 - else - return 30 - end - end, winbar = { enable = true, name_formatter = function(term) -- term: Terminal