Skip to content

Commit

Permalink
Format with stylua
Browse files Browse the repository at this point in the history
  • Loading branch information
molleweide authored and github-actions[bot] committed Jan 8, 2023
1 parent 4b93be5 commit 6249735
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions lua/luasnip/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ end

local function get_context(snip)
return {
id = snip.id,
meta_data = snip.meta_data,
id = snip.id,
meta_data = snip.meta_data,
name = snip.name,
trigger = snip.trigger,
description = snip.dscr,
Expand Down
4 changes: 2 additions & 2 deletions lua/luasnip/loaders/from_lua.lua
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ local function load_files(ft, files, add_opts)
ft,
file_snippets,
vim.tbl_extend("keep", {
source = file,
source = file,
type = "snippets",
key = "__snippets_" .. file,
-- prevent refresh here, will be done outside loop.
Expand All @@ -94,7 +94,7 @@ local function load_files(ft, files, add_opts)
ft,
file_autosnippets,
vim.tbl_extend("keep", {
source = file,
source = file,
type = "autosnippets",
key = "__autosnippets_" .. file,
-- prevent refresh here, will be done outside loop.
Expand Down
4 changes: 2 additions & 2 deletions lua/luasnip/loaders/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ local function default_edit(file)
end

local function edit_specific_snippet(data, edit)
local source =data.meta_data.source
if source then
local source = data.meta_data.source
if source then
edit(source)
if data.name then
local feed_str = vim.api.nvim_replace_termcodes(
Expand Down
2 changes: 1 addition & 1 deletion lua/luasnip/session/snippet_collection.lua
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ function M.add_snippets(snippets, opts)
-- this should allow me to remove the snip id mapping and use a
-- pure meta data pointer.
if opts.source and opts.store_meta_data then
table.insert(snippets_meta_data, { source = opts.source })
table.insert(snippets_meta_data, { source = opts.source })
end

for ft, ft_snippets in pairs(snippets) do
Expand Down

0 comments on commit 6249735

Please sign in to comment.