Giter VIP home page Giter VIP logo

cmp-emoji's Introduction

cmp-emoji's People

Contributors

hrsh7th avatar roccococco avatar samuelhwilliams avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

cmp-emoji's Issues

Cannot insert emoji text

Confirming the emoji inserts the emoji instead of the emoji name even though insert = false is set. Is there any way to get around that?

Emojis are not inserted

I've set up cmp with this plugin, but emojis don't get inserted when I pick one.

When I type :pa, I get the autocomplete menu just fine. If I press tab to pick an emoji (e.g.: the panda face), it doesn't insert the emoji, but instead its name (e.g.: :panda_face:).

Here's my current config:

vim.opt.completeopt = { "menu", "menuone", "noselect" }

require("cmp").setup({
  sources = {
    { name = "buffer" },
    { name = "emoji" },
    { name = "nvim_lsp", priority = 100 }, -- Keep LSP results on top.
    { name = "path" },
    { name = "spell" },
    { name = "treesitter" },
    { name = 'nvim_lua' },
  },
  formatting = {
    format = function(entry, vim_item)

      -- set a name for each source
      vim_item.menu = ({
        buffer = "[Buffer]",
        emoji = "[Emoji]",
        nvim_lsp = "[LSP]",
        path = "[Path]",
        spell = "[Spell]",
        treesitter = "[Treesitter]",
        nvim_lua = "[Neovim]",
      })[entry.source.name]
      return vim_item
    end,
  },
})

I recently migrated from nvim-compe, and this was my previous config. On compe, if I pressed tab and picked an emoji, it was inserted just fine.

Maybe previously completion was working due to something I've missed porting?

vim.o.completeopt = "menuone,noselect"

require("compe").setup({
  enabled = true,
  autocomplete = true,
  debug = false,
  min_length = 1,
  preselect = "disable",

  source = {
    path = true,
    buffer = true,
    calc = true,
    vsnip = true,
    nvim_lsp = true,
    nvim_lua = true,
    spell = true,
    tags = true,
    snippets_nvim = true,
    treesitter = true,
    emoji = true,
  },
})

Add new emojis (query only)

Hi

Wondering if there's new emojis being added? Or plans to add new ones?

I'm manually adding some emojis that I personally use/like but was wondering whether we have anything in progress related to that so I don't work on repeated stuff .. I mean, duplicating work.

Also is there any automated way of adding new ones? For instance reading a font file and importing the icons? Or it's manually as I'm doing?

This is not actually an issue but couldn't find much info out there so submitting this issue / query.

Thanks

Support an option for the trigger characters?

I enjoy the plugin, but I also work in a few languages that make frequent use of colons as starting characters for keywords/symbols. What are your thoughts on making an option for the trigger characters?

How to set default emoji skin?

Hi, ๐Ÿ‘‹

When I type :wave:, Is there a way to get the default emoji skin?

image

  • Default emoji skin in Emote

image

Thank you for nvim-cmp! ๐Ÿจ

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.