From 9896809b29cd7f56623cfd1ba41e28988d7788be Mon Sep 17 00:00:00 2001 From: Robert Altner Date: Mon, 22 Apr 2024 10:23:34 +0200 Subject: [PATCH] add terminal --- lua/init.lua | 6 ++++++ lua/keymap.lua | 3 +++ 2 files changed, 9 insertions(+) diff --git a/lua/init.lua b/lua/init.lua index ae46e7d..0c03295 100644 --- a/lua/init.lua +++ b/lua/init.lua @@ -111,3 +111,9 @@ require('lualine').setup { inactive_winbar = {}, extensions = {} } + +vim.api.nvim_create_autocmd("TermClose", { + callback = function() + vim.cmd("close") + end +}) diff --git a/lua/keymap.lua b/lua/keymap.lua index e19564f..575c08d 100644 --- a/lua/keymap.lua +++ b/lua/keymap.lua @@ -33,3 +33,6 @@ map("n", "9", "9gt") map("n", "0", ":tablast") map("n", "", ":call vimspector#ToggleBreakpoint( input( \"Enter condition: \" ) )") + +map("n", "t", ":bo 15split +term") +map("t", "", "")