fix empty snippets
This commit is contained in:
parent
de246fa0f5
commit
a3a5b506de
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue