make sure we can exit dap terminal with esc

This commit is contained in:
Oliver Hartmann
2022-11-17 15:00:43 +01:00
parent 4b3bc84837
commit 15b03ee11f
2 changed files with 24 additions and 16 deletions

View File

@@ -1,5 +1,15 @@
dap = require('dap')
-- make sure we can exit the terminal with esc
vim.api.nvim_create_autocmd({ "TermOpen" }, {
pattern = { '*dap-terminal*' },
callback = function()
local opts = { noremap = true }
vim.api.nvim_buf_set_keymap(0, 't', '<esc>', [[<C-\><C-n>]], opts)
end
})
local function getVenvSuffix()
if vim.loop.os_uname().sysname == 'Linux' then
return 'bin/python'