nvim: add blink-emoji completion 🚀
This commit is contained in:
parent
8ccaf3b9d7
commit
28427e9f10
2 changed files with 15 additions and 20 deletions
home/common/nvim
|
@ -29,7 +29,7 @@ require 'blink-cmp'.setup({
|
|||
menu = {
|
||||
auto_show = true,
|
||||
border = 'rounded',
|
||||
direction_priority = { 'n' },
|
||||
direction_priority = { 'n', 's' },
|
||||
draw = {
|
||||
components = {
|
||||
kind_icon = {
|
||||
|
@ -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 },
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
})
|
||||
|
|
|
@ -46,6 +46,8 @@ in
|
|||
];
|
||||
|
||||
plugins = with pkgs.vimPlugins; [
|
||||
blink-compat
|
||||
blink-emoji-nvim
|
||||
friendly-snippets
|
||||
go-nvim
|
||||
targets-vim
|
||||
|
@ -80,22 +82,6 @@ in
|
|||
config = lib.fileContents ./blink-cmp.lua;
|
||||
}
|
||||
|
||||
{
|
||||
plugin = pkgs.vimUtils.buildVimPlugin {
|
||||
name = "blink.compat";
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "saghen";
|
||||
repo = "blink.compat";
|
||||
rev = "5ca8848c8cc32abdc980e5db4f0eb7bb8fbf84dc"; # Dec 25, 2024
|
||||
hash = "sha256-tFQeKyqdo3mvptYnWxKhTpI4ROFNQ6u3P8cLqtlsozw=";
|
||||
};
|
||||
};
|
||||
type = "lua";
|
||||
config = ''
|
||||
require('blink.compat').setup()
|
||||
'';
|
||||
}
|
||||
|
||||
{
|
||||
plugin = pkgs.vimUtils.buildVimPlugin {
|
||||
name = "inlay-hints";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue