Skip to content

notomo/pluginbuf.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pluginbuf.nvim

WIP

Inspired by vim-metarw.

Example

local util = require("pluginbuf.util")
require("pluginbuf").register("gh-repo-description", {
  {
    path = util.path("{owner}/{repo}"),
    read = function(ctx)
      local onwer_repo = ctx.path_params.owner .. "/" .. ctx.path_params.repo
      return util.cmd_output({ "gh", "repo", "view", onwer_repo, "--json=description", "--jq=.description" })(ctx)
    end,
    write = function(ctx)
      local onwer_repo = ctx.path_params.owner .. "/" .. ctx.path_params.repo
      return util.cmd_input({ "gh", "repo", "edit", onwer_repo, "--description", "-" })(ctx)
    end,
  },
})
vim.cmd.tabedit("gh-repo-description://notomo/pluginbuf.nvim")

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published