feat: add gleam formatting and snippets

This commit is contained in:
Moritz Böhme 2024-03-02 13:54:08 +01:00
parent ad8ff7d016
commit 09caae2e4e
No known key found for this signature in database
GPG key ID: 970C6E89EB0547A9
3 changed files with 131 additions and 2 deletions

View file

@ -28,7 +28,7 @@ cmp.setup({
["<Tab>"] = cmp.mapping(function(fallback)
if cmp.visible() then
cmp.select_next_item({ behavior = cmp.SelectBehavior.Select })
elseif luasnip.jumpable(1) then
elseif luasnip.locally_jumpable(1) then
luasnip.jump(1)
else
fallback()
@ -37,7 +37,7 @@ cmp.setup({
["<S-Tab>"] = cmp.mapping(function(fallback)
if cmp.visible() then
cmp.select_prev_item({ behavior = cmp.SelectBehavior.Select })
elseif luasnip.jumpable(-1) then
elseif luasnip.locally_jumpable(-1) then
luasnip.jump(-1)
else
fallback()