mjacobus / telescope-gitmoji.nvim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

telescope-gitmoji.nvim

Use https://github.com/Dynge/gitmoji.nvim instead.

An extension for telescope.nvim that allows you to search gitmojis

image

Get Started

Install telescope and this plugin then

require("telescope").load_extension("gitmoji")

Usage

:Telescope gitmoji

Configuraion

It's optional.

by default

telescope.setup {
  extensions = {
    gitmoji = {
      action = function(gitmoji)
        -- argument gitmoji is a table.
        -- {name="", value="", cagegory="", description=""}

        vim.fn.setreg("*", gitmoji.value)
        print([[Press p or "*p to paste this gitmoji]] .. gitmoji.value)

        -- insert gitmoji when picked
        -- vim.api.nvim_put({ gitmoji.value }, 'c', false, true)
      end,
    }
  },
}

Credits

This plugin is a shameless copy and paste of https://github.com/xiyaowong/telescope-emoji.nvim.

About


Languages

Language:Lua 100.0%