xiyaowong / telescope-emoji.nvim Goto Github PK
View Code? Open in Web Editor NEWAn extension for telescope.nvim that allows you to search emojis😃
An extension for telescope.nvim that allows you to search emojis😃
I'm using Windows Terminal & have loaded the extension as suggested, yet the emojis doesn't show up on the window. Any idea why is it so? Or at least can help me debug it further?
Also, just a heads up for you, I'm pretty sure Windows Terminal does support emojis because I've seen other terminal apps showing them. And I've attached a screenshot for your reference:
Hey thank you for taking the time to create this extension!
I have installed your extension and it seems to work great.
Because you expose the ability to configure what should be done when an emoji is chosen i was able to insert the emoji directly instead of having to put press p afterwards.
require("telescope-emoji").setup({
action = function(emoji)
vim.api.nvim_command(string.format(':call feedkeys("i"."%s")', emoji.value))
end,
})
I'm unsure if the current design is what you want it to do, and if so that's fine, however if it is then maybe this functionality should be documented in the readme
hi. thanks for the amazing plugin. is it possible to filter emojis based on their type? so for example only symbol emojis are shown in telescope.
I'm curious to know if you've considered adding newer emojis to this extension. From what I can tell, the emojis in this project go up to "Emoji 4.0" ("Emoji 14.0" appears to be the latest, generally adopted version).
Thanks for putting together this project! 😸
The plug-in is in fact loading, but it ins't loading my configuration, therefore not pasting anything. I've got my telescope settings such as:
table.insert(M, { 'nvim-telescope/telescope.nvim',
dependencies = {
"nvim-telescope/telescope.nvim",
"nvim-lua/plenary.nvim",
"debugloop/telescope-undo.nvim",
"kelly-lin/telescope-ag",
"xiyaowong/telescope-emoji.nvim",
"ghassan0/telescope-glyph.nvim",
"natecraddock/telescope-zf-native.nvim",
"nvim-lua/plenary.nvim"
},
config = function()
local telescope = require("telescope")
local actions = require "telescope.actions"
telescope.load_extension("zf-native")
telescope.load_extension("emoji")
telescope.load_extension("glyph")
telescope.load_extension("ag")
telescope.load_extension("undo")
telescope.setup {
defaults = {
-- .... ..... ...
},
extensions = {
glyph = {
action = function(emoji)
-- vim.fn.setreg("*", emoji.value)
vim.api.nvim_put({ emoji.value }, 'c', false, true)
end,
},
emoji = {
action = function(emoji)
-- vim.fn.setreg("*", emoji.value)
vim.api.nvim_put({ emoji.value }, 'c', false, true)
end,
}
}
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.