Skip to content

nyngwang/NeoTerm.lua

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 

Repository files navigation

NeoTerm.lua

Now you have two sides for each buffer:

  1. The buffer itself
  2. Its terminal buffer.

and you just use one single command NeoTermToggle to switch the side of each one :)

DEMO

NeoTerm_new_era.mov

Feat.

  • ~0ms load time (lines ~200)
  • No dependency.
  • Only add two commands in your pocket: easy to remember.
  • Focus on DX:
    • simple setup, so always readable.
    • auto enter insert-mode on BufEnter the terminal.
    • customizable(term_mode_hl) background color on enter termbuf insert-mode. 🎨

Feat.

Config

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
}

About

You can attach a terminal-buffer for each buffer.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages