fix empty snippets

This commit is contained in:
i3Cheese 2022-01-31 01:56:58 +07:00 committed by siduck
parent de246fa0f5
commit a3a5b506de

View File

@ -9,10 +9,13 @@ local snippets_status = require("core.utils").load_config().plugins.status.snipp
vim.opt.completeopt = "menuone,noselect"
local default = {
snippet = snippets_status and {
snippet = (snippets_status and {
expand = function(args)
require("luasnip").lsp_expand(args.body)
end,
}) or {
expand = function(args)
end,
},
formatting = {
format = function(entry, vim_item)