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" vim.opt.completeopt = "menuone,noselect"
local default = { local default = {
snippet = snippets_status and { snippet = (snippets_status and {
expand = function(args) expand = function(args)
require("luasnip").lsp_expand(args.body) require("luasnip").lsp_expand(args.body)
end, end,
}) or {
expand = function(args)
end,
}, },
formatting = { formatting = {
format = function(entry, vim_item) format = function(entry, vim_item)