From fdb2fa86e4e004d879535f4eb8fc110760ace9be Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Tue, 21 Jan 2025 22:30:38 +0100 Subject: [PATCH] =?UTF-8?q?nvim:=20add=20blink-emoji=20completion=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- home/common/nvim/blink-cmp.lua | 15 ++++++++++++--- home/common/nvim/default.nix | 1 + 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/home/common/nvim/blink-cmp.lua b/home/common/nvim/blink-cmp.lua index a719718..113fda6 100644 --- a/home/common/nvim/blink-cmp.lua +++ b/home/common/nvim/blink-cmp.lua @@ -61,9 +61,18 @@ require 'blink-cmp'.setup({ }, sources = { - default = { 'lsp' }, + default = { + 'lsp', + 'emoji', + }, cmdline = {}, - providers = {}, + providers = { + emoji = { + module = "blink-emoji", + name = "Emoji", + score_offset = 1, + opts = { insert = true }, + } + }, }, - }) diff --git a/home/common/nvim/default.nix b/home/common/nvim/default.nix index b681cdc..e5adcd9 100644 --- a/home/common/nvim/default.nix +++ b/home/common/nvim/default.nix @@ -47,6 +47,7 @@ in plugins = with pkgs.vimPlugins; [ blink-compat + blink-emoji-nvim friendly-snippets go-nvim targets-vim