Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jonathanforhan/nvim-glyph

telescope integration with digraphs and custom unicode characters
https://github.com/jonathanforhan/nvim-glyph

Last synced: about 2 months ago
JSON representation

telescope integration with digraphs and custom unicode characters

Awesome Lists containing this project

README

        

# nvim-glyph

a neovim plugin to have queryable glyphs

## Install

lazy.nvim

```lua
{
"jonathanforhan/nvim-glyph",
dependencies = {
{ "nvim-telescope/telescope.nvim" }
},
opts = {},
init = function()
vim.keymap.set("i", "", function()
require("nvim-glyph").pick_glyph()
end)
end
}
```

## Default Setup

unless changed within ```opts``` these are the default options

```lua
opts = {
-- path of the vim digraph table
digraph_table_path = vim.fn.expand("$VIMRUNTIME/doc/digraph.txt"),

-- telescope style for popup
telescope_style = dropdown,

-- these are the catagories that nvim-glyph defines to be excludable
exclude_catagories = {
-- "GREEK",
-- "LATIN",
-- "CYRILLIC",
-- "HEBREW",
-- "ARABIC",
-- "BOX",
-- "JAPANESE",
-- "OTHER"
},

-- exclude these keywords for being display, still present for queries, however
exclude_keywords = {
"GREEK ",
"LATIN ",
"CYRILLIC ",
"HEBREW ",
"ARABIC ",
"ARABIC%-INDIC ",
"EXTENDED ",
"VULGAR ",
"HIRAGANA ",
"KATAKANA ",
"BOPOMOFO ",
"CAPITAL ",
"SMALL ",
"LETTER ",
"DIGIT ",
},

-- exclude certain digraph codes from being included
exclude_code = {
-- a digraph dec code (see ":h digraphs" for codes)
},

-- custom user-defined glyphs
custom = {
-- {
-- value = "" -- any unicode (or any UTF-8 string for that matter)
-- display = "TUX" -- a description
-- ordinal = "query string" or nil -- optional query string, will be the display if nil
-- }
},
}
```

## Demo

[screen-capture.webm](https://github.com/jonathanforhan/nvim-glyph/assets/99012095/96f33b19-4320-44f4-a20f-d0297d0f3fc4)