Skip to content

wsdjeg/terminal.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

terminal.nvim

terminal.nvim is a simple floating terminal plugin for Neovim.

GitHub License GitHub Issues or Pull Requests GitHub commit activity GitHub Release luarocks

Image

Install

with nvim-plug

require('plug').add({
  {
    'wsdjeg/terminal.nvim',
    keys = {
      {
        'n',
        "<leader>'",
        '<cmd>lua require("terminal").open()<cr>',
        { silent = true, desc = 'open terminal in current path' },
      },
      {
        'n',
        '<leader>"',
        '<cmd>lua require("terminal").open(vim.fn.expand("%:p:h"))<cr>',
        { silent = true, desc = 'open terminal in file path' },
      },
    },
    opts = {
      border = { '', '', '', '', '', '', '', '' },
      picker = {
        highlight = {
          --  [25768   ] ✓ { "cmd.exe", "/s", "/c", '"cmd.exe"' } (~\AppData\Local\nvim) buf:2
          --   jobpid   status            cmd                             cwd            bufnr
          jobpid = 'Number',
          status_ok = 'DiagnosticOk',
          status_error = 'DiagnosticError',
          cmd = 'String',
          cwd = 'Comment',
          buffer = 'Comment',
        },
      },
    },
  },
})

Picker Source

terminal.nvim also provides a terminal source for picker.nvim. Use :Picker terminal to fuzzy find opened terminal buffers.

picker-terminal

About

simple floating terminal plugin for Neovim

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Contributors

Languages