Skip to content

a neovim plugin that runs command in the terminal then opens it in a popup window , useful for terminal UI like lazygit

Notifications You must be signed in to change notification settings

Faisal-Aljutaili/OpenInPopUp.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

OpenInPopUp.nvim

usage

here is an example that opens lazygit

--with lazy vim
{
    "Faisal-Aljutaili/OpenInPopUp.nvim",
    init = function()
      vim.api.nvim_set_keymap(
        "n",
        "<Leader>go",
        '<cmd>lua require("OpenInPopUp").new{}:open("lazygit", { width = 200, height = 150 })<cr>',
        { noremap = true, silent = true }
      )
    end,
  }

if you want to enter the command manually you can use:

{
    "Faisal-Aljutaili/OpenInPopUp.nvim",
    init = function()
      vim.api.nvim_set_keymap(
        "n",
        "<Leader>go",
        '<cmd>lua require("OpenInPopUp").new{}:open(vim.fn.input("lazygit"), { width = 200, height = 150 })<cr>',
        { noremap = true, silent = true }
      )
    end,
  },

About

a neovim plugin that runs command in the terminal then opens it in a popup window , useful for terminal UI like lazygit

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages