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 ++++++++++ .config/nvim/lua/plugins.lua | 1 + 2 files changed, 11 insertions(+) (limited to '.config/nvim') 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()' diff --git a/.config/nvim/lua/plugins.lua b/.config/nvim/lua/plugins.lua index 3ae9343..e230423 100644 --- a/.config/nvim/lua/plugins.lua +++ b/.config/nvim/lua/plugins.lua @@ -15,6 +15,7 @@ require('packer').startup(function() use 'norcalli/nvim-colorizer.lua' use 'b3nj5m1n/kommentary' use 'mhinz/vim-startify' + use "akinsho/toggleterm.nvim" use { 'nvim-telescope/telescope.nvim', -- cgit v1.2.3-70-g09d2