nvim: add blink-emoji completion 🚀
This commit is contained in:
parent
8ccaf3b9d7
commit
a617b937c0
2 changed files with 16 additions and 20 deletions
home/common/nvim
|
@ -1,3 +1,4 @@
|
||||||
|
-- require('blink.compat').setup({ debug = true, impersonate_nvim_cmp = true })
|
||||||
require 'blink-cmp'.setup({
|
require 'blink-cmp'.setup({
|
||||||
keymap = {
|
keymap = {
|
||||||
preset = 'enter',
|
preset = 'enter',
|
||||||
|
@ -29,7 +30,7 @@ require 'blink-cmp'.setup({
|
||||||
menu = {
|
menu = {
|
||||||
auto_show = true,
|
auto_show = true,
|
||||||
border = 'rounded',
|
border = 'rounded',
|
||||||
direction_priority = { 'n' },
|
direction_priority = { 'n', 's' },
|
||||||
draw = {
|
draw = {
|
||||||
components = {
|
components = {
|
||||||
kind_icon = {
|
kind_icon = {
|
||||||
|
@ -61,9 +62,18 @@ require 'blink-cmp'.setup({
|
||||||
},
|
},
|
||||||
|
|
||||||
sources = {
|
sources = {
|
||||||
default = { 'lsp' },
|
default = {
|
||||||
|
'lsp',
|
||||||
|
'emoji',
|
||||||
|
},
|
||||||
cmdline = {},
|
cmdline = {},
|
||||||
providers = {},
|
providers = {
|
||||||
|
emoji = {
|
||||||
|
module = "blink-emoji",
|
||||||
|
name = "Emoji",
|
||||||
|
score_offset = 1,
|
||||||
|
opts = { insert = true },
|
||||||
|
}
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
|
@ -46,6 +46,8 @@ in
|
||||||
];
|
];
|
||||||
|
|
||||||
plugins = with pkgs.vimPlugins; [
|
plugins = with pkgs.vimPlugins; [
|
||||||
|
blink-compat
|
||||||
|
blink-emoji-nvim
|
||||||
friendly-snippets
|
friendly-snippets
|
||||||
go-nvim
|
go-nvim
|
||||||
targets-vim
|
targets-vim
|
||||||
|
@ -80,22 +82,6 @@ in
|
||||||
config = lib.fileContents ./blink-cmp.lua;
|
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 {
|
plugin = pkgs.vimUtils.buildVimPlugin {
|
||||||
name = "inlay-hints";
|
name = "inlay-hints";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue