From f8ce0f7d8cc352503c2fcab3e63349243880b976 Mon Sep 17 00:00:00 2001 From: Adam <56338480+adastx@users.noreply.github.com> Date: Sun, 10 Oct 2021 10:34:22 +0200 Subject: vim added keybind to toggle show/hide terminal --- .config/nvim/lua/opts.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to '.config/nvim/lua/opts.lua') diff --git a/.config/nvim/lua/opts.lua b/.config/nvim/lua/opts.lua index a22a538..184900a 100644 --- a/.config/nvim/lua/opts.lua +++ b/.config/nvim/lua/opts.lua @@ -109,6 +109,16 @@ require'nvim-treesitter.configs'.setup { }, } +require("toggleterm").setup{ + -- size can be a number or function which is passed the current terminal + size = 75, + open_mapping = [[]], + hide_numbers = true, -- hide the number column in toggleterm buffers + persist_size = true, + direction = 'vertical', + close_on_exit = true, -- close the terminal window when the process exits +} + -- Misc require('kommentary.config').use_extended_mappings() vim.o.tabline = '%!v:lua.require\'luatab\'.tabline()' -- cgit v1.2.3-70-g09d2