Home

Awesome

an example of narrow region implementation for nvim

feature/limits

status

prerequisites

usage

do --:Nag
  local function action(args)
    local open = args.open
    local nag = require("nag")
    if open == "tab" then return nag.tab() end
    nag.split(open)
  end
  local comp = cmds.ArgComp.constant({ "tab", "left", "right", "above", "below" })

  local spell = cmds.Spell("Nag", action)
  spell:enable("range")
  spell:add_arg("open", "string", false, "tab", comp)
  cmds.cast(spell)
end

thanks