Skip to content

Latest commit

 

History

History
34 lines (31 loc) · 829 Bytes

README.md

File metadata and controls

34 lines (31 loc) · 829 Bytes

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,
  },