Compare commits

...

2 Commits

Author SHA1 Message Date
Daniel Patterson
c25c1db32f Make indentscope less obnoxious 2023-08-04 12:52:01 +01:00
Daniel Patterson
05b1539183 Fix snippet bullshit finally 2023-08-04 12:42:31 +01:00

View File

@@ -13,7 +13,29 @@ return {
},
},
{
"L3MON4D3/LuaSnip",
keys = {{"<tab>", "<C-.>"}}
}
"L3MON4D3/LuaSnip",
-- stylua: ignore
keys = function()
return {
{
"<C-.>",
function()
return require("luasnip").jumpable(1) and "<Plug>luasnip-jump-next" or "<tab>"
end,
expr = true, silent = true, mode = "i",
},
{ "<C-.>", function() require("luasnip").jump(1) end, mode = "s" },
{ "<C-,>", function() require("luasnip").jump(-1) end, mode = { "i", "s" } },
}
end,
},
{
"echasnovski/mini.indentscope",
opts = {
draw = {
delay = 0,
animation = require("mini.indentscope").gen_animation.none(),
},
},
},
}