fix empty snippets
This commit is contained in:
parent
de246fa0f5
commit
a3a5b506de
1 changed files with 4 additions and 1 deletions
|
@ -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 a new issue