Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/jonathanforhan/nvim-glyph
- Owner: jonathanforhan
- Created: 2024-02-11T21:16:25.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-09-10T19:35:09.000Z (4 months ago)
- Last Synced: 2024-09-10T22:26:38.142Z (4 months ago)
- Language: Lua
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- my-neovim-pluginlist - jonathanforhan/nvim-glyph - glyph) ![](https://img.shields.io/github/last-commit/jonathanforhan/nvim-glyph) ![](https://img.shields.io/github/commit-activity/y/jonathanforhan/nvim-glyph) (Other Standard Feature Enhancement / digraph)
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)