emoji LSP autocomplete :)
This commit is contained in:
parent
739fb4af9b
commit
1a1a6eb69e
@ -1,11 +1,28 @@
|
|||||||
return {
|
return {
|
||||||
'allaman/emoji.nvim',
|
'allaman/emoji.nvim',
|
||||||
ft = 'markdown',
|
version = '1.0.0', -- optionally pin to a tag
|
||||||
|
ft = 'markdown', -- adjust to your needs
|
||||||
dependencies = {
|
dependencies = {
|
||||||
|
-- util for handling paths
|
||||||
|
'nvim-lua/plenary.nvim',
|
||||||
|
-- optional for nvim-cmp integration
|
||||||
'hrsh7th/nvim-cmp',
|
'hrsh7th/nvim-cmp',
|
||||||
|
-- optional for telescope integration
|
||||||
'nvim-telescope/telescope.nvim',
|
'nvim-telescope/telescope.nvim',
|
||||||
|
-- optional for fzf-lua integration via vim.ui.select
|
||||||
|
'ibhagwan/fzf-lua',
|
||||||
},
|
},
|
||||||
config = function()
|
opts = {
|
||||||
require('telescope').load_extension 'emoji'
|
-- default is false, also needed for blink.cmp integration!
|
||||||
|
enable_cmp_integration = true,
|
||||||
|
-- optional if your plugin installation directory
|
||||||
|
-- is not vim.fn.stdpath("data") .. "/lazy/
|
||||||
|
-- plugin_path = vim.fn.expand '$HOME/plugins/',
|
||||||
|
},
|
||||||
|
config = function(_, opts)
|
||||||
|
require('emoji').setup(opts)
|
||||||
|
-- optional for telescope integration
|
||||||
|
local ts = require('telescope').load_extension 'emoji'
|
||||||
|
vim.keymap.set('n', '<leader>se', ts.emoji, { desc = '[S]earch [E]moji' })
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user