add terminal

This commit is contained in:
Robert Altner 2024-04-22 10:23:34 +02:00
parent 6f8f1281de
commit 9896809b29
No known key found for this signature in database
GPG key ID: 58794C52DAF9EAD8
2 changed files with 9 additions and 0 deletions

View file

@ -111,3 +111,9 @@ require('lualine').setup {
inactive_winbar = {},
extensions = {}
}
vim.api.nvim_create_autocmd("TermClose", {
callback = function()
vim.cmd("close")
end
})

View file

@ -33,3 +33,6 @@ map("n", "<leader>9", "9gt")
map("n", "<leader>0", ":tablast<cr>")
map("n", "<leader><F9>", ":call vimspector#ToggleBreakpoint( input( \"Enter condition: \" ) )<CR>")
map("n", "<leader>t", ":bo 15split +term<CR>")
map("t", "<ESC>", "<C-\\><C-N>")