Skip to content

An extension for telescope.nvim that allows you to search font glyphs

Notifications You must be signed in to change notification settings

alduraibi/telescope-glyph.nvim

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

telescope-glyph.nvim

An extension for telescope.nvim that allows you to search font glyphs

screenshot

Same as above but shows glyphs instead of emojis

Get Started

Requirements:

  • A patched Nerd Font
  • Telescope

Install and load this plugin:

use { 'ghassan0/telescope-glyph.nvim' }


require('telescope').load_extension('glyph')

Usage

:Telescope glyph

Configuraion

It's optional.

by default

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

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

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

Credit

This project is a direct fork of telescope-emoji.nvim to provide font glyphs instead of emojis.

The nerd fonts and unicode cheatsheets from cheatsheet.nvim were used to create the sources for the glyphs.

About

An extension for telescope.nvim that allows you to search font glyphs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 100.0%