Skip to content

An extension for telescope.nvim that allows you to search emojis😃

Notifications You must be signed in to change notification settings

xiyaowong/telescope-emoji.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

telescope-emoji.nvim

An extension for telescope.nvim that allows you to search emojis😃

screenshot

Get Started

Install telescope and this plugin then

require("telescope").load_extension("emoji")

Usage

:Telescope emoji

Configuraion

It's optional.

by default

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

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

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

About

An extension for telescope.nvim that allows you to search emojis😃

Topics

Resources

Stars

Watchers

Forks

Languages