Skip to content

Commit

Permalink
BREAKING(conditions): move expand-conditions due to ambiguity.
Browse files Browse the repository at this point in the history
With the introduction of `show_condition`, `condition` alone is
ambiguous.
  • Loading branch information
L3MON4D3 committed Oct 29, 2021
1 parent 383a932 commit b7d520e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Examples/snippets.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ local dl = require("luasnip.extras").dynamic_lambda
local fmt = require("luasnip.extras.fmt").fmt
local fmta = require("luasnip.extras.fmt").fmta
local types = require("luasnip.util.types")
local conds = require("luasnip.extras.conditions")
local conds = require("luasnip.extras.expand_conditions")

-- Every unspecified option will be set to the default.
ls.config.set_config({
Expand Down Expand Up @@ -246,7 +246,7 @@ ls.snippets = {
return line_to_cursor:match("%s*//")
end,
}),
-- there's some built-in conditions in "luasnip.extras.conditions".
-- there's some built-in conditions in "luasnip.extras.expand_conditions".
s("cond2", {
t("will only expand at the beginning of the line"),
}, {
Expand Down
File renamed without changes.

0 comments on commit b7d520e

Please sign in to comment.