feat: add emoji to auto completion
This commit is contained in:
parent
7f07f9707e
commit
2657cbbf33
@ -24,6 +24,7 @@ cmp.setup{
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
sources = {
|
sources = {
|
||||||
|
{ name = 'emoji', max_item_count = 10, keyword_length = 5 },
|
||||||
{ name = 'nvim_lua' },
|
{ name = 'nvim_lua' },
|
||||||
|
|
||||||
{ name = 'nvim_lsp', max_item_count = 20 },
|
{ name = 'nvim_lsp', max_item_count = 20 },
|
||||||
@ -42,6 +43,7 @@ cmp.setup{
|
|||||||
nvim_lua = "[api]",
|
nvim_lua = "[api]",
|
||||||
path = "[path]",
|
path = "[path]",
|
||||||
luasnip = "[snip]",
|
luasnip = "[snip]",
|
||||||
|
emoji = "[emoji]"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
|
|
||||||
local function usePlugins(use)
|
---@diagnostic disable-next-line: unused-local
|
||||||
|
local function usePlugins(use, use_rocks)
|
||||||
-- Packer can manage itself
|
-- Packer can manage itself
|
||||||
use 'wbthomason/packer.nvim'
|
use 'wbthomason/packer.nvim'
|
||||||
|
|
||||||
@ -102,6 +103,7 @@ local function usePlugins(use)
|
|||||||
use {'hrsh7th/cmp-buffer', after = 'nvim-cmp', requires = 'hrsh7th/nvim-cmp'}
|
use {'hrsh7th/cmp-buffer', after = 'nvim-cmp', requires = 'hrsh7th/nvim-cmp'}
|
||||||
use {'hrsh7th/cmp-path', after = 'nvim-cmp', requires = 'hrsh7th/nvim-cmp'}
|
use {'hrsh7th/cmp-path', after = 'nvim-cmp', requires = 'hrsh7th/nvim-cmp'}
|
||||||
use {'hrsh7th/cmp-cmdline', after = 'nvim-cmp', requires = 'hrsh7th/nvim-cmp'}
|
use {'hrsh7th/cmp-cmdline', after = 'nvim-cmp', requires = 'hrsh7th/nvim-cmp'}
|
||||||
|
use {'hrsh7th/cmp-emoji', after = 'nvim-cmp', requires = 'hrsh7th/nvim-cmp'}
|
||||||
use {'saadparwaiz1/cmp_luasnip', after = 'nvim-cmp', requires = {'L3MON4D3/LuaSnip', 'nvim-cmp'}}
|
use {'saadparwaiz1/cmp_luasnip', after = 'nvim-cmp', requires = {'L3MON4D3/LuaSnip', 'nvim-cmp'}}
|
||||||
|
|
||||||
-- Color themes
|
-- Color themes
|
||||||
@ -140,7 +142,6 @@ vim.cmd [[
|
|||||||
local function bootstrap()
|
local function bootstrap()
|
||||||
local fn = vim.fn
|
local fn = vim.fn
|
||||||
local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim'
|
local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim'
|
||||||
local packer_bootstrap
|
|
||||||
if fn.empty(fn.glob(install_path)) > 0 then
|
if fn.empty(fn.glob(install_path)) > 0 then
|
||||||
return fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path})
|
return fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path})
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user