在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):saadparwaiz1/cmp_luasnip开源软件地址(OpenSource Url):https://github.com/saadparwaiz1/cmp_luasnip开源编程语言(OpenSource Language):Lua 100.0%开源软件介绍(OpenSource Introduction):cmp_luasnipluasnip completion source for nvim-cmp -- Installation
use { 'L3MON4D3/LuaSnip' }
use {
'hrsh7th/nvim-cmp',
config = function ()
require'cmp'.setup {
snippet = {
expand = function(args)
require'luasnip'.lsp_expand(args.body)
end
},
sources = {
{ name = 'luasnip' },
-- more sources
},
}
end
}
use { 'saadparwaiz1/cmp_luasnip' } To disable filtering completion candidates by snippet's sources = {
{ name = 'luasnip', option = { use_show_condition = false } },
-- more sources
}, This can also be configured on per-buffer basis as described in cmp's README here and here. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论