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"
|
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user