Now you have two sides for each buffer:
and you just use one single command NeoTermToggle
to switch the side of each one :)
setup
, so always readable.BufEnter
the terminal.term_mode_hl
) background color on enter termbuf insert-mode. :art:vim-test/vim-test
out-of-the-box (setup.presets
).use {
'nyngwang/NeoTerm.lua',
config = function ()
require('neo-term').setup {
exclude_filetypes = { 'oil' },
-- exclude_buftypes = {}, -- 'terminal' will always be added by NeoTerm.lua
-- enabled by default!
-- presets = {
-- 'vim-test',
-- }
}
vim.keymap.set('n', '<M-Tab>', function () vim.cmd('NeoTermToggle') end)
vim.keymap.set('t', '<M-Tab>', function () vim.cmd('NeoTermEnterNormal') end)
end
}