LuaSnip Zero to Hero #8 Postfix Snippets

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 พ.ย. 2024

ความคิดเห็น • 4

  • @pst659
    @pst659 8 หลายเดือนก่อน

    ur channel is going to blow up

  • @lintaoamons5712
    @lintaoamons5712 10 หลายเดือนก่อน

    thx for making it, saved me quite a lot of time to learn it by myself. Also want to ask if the match pattern can be a syntax objects? Or if I can firstly select some text then trigger a snippet?

    • @s1n7ax
      @s1n7ax  10 หลายเดือนก่อน

      there is treesitter-postfix which I think better in terms of quality of snippets but little messy to write.
      I have had the same thought. Since everything is in insert mode, I don't think you can do text objects. When something is in visual mode, what ever you type will replace the text.
      So, I don't think text-object nor selection is possible but I will start a discussion to get the information directly from the author.

  • @ayoubelmhamdi7920
    @ayoubelmhamdi7920 10 หลายเดือนก่อน

    i try to learn the snippet, it is amazing we write texts fast, but when we try a new API, using snippet and lsp and completion, doesn't help to memorize the API, and the fast way create unmanageable code and bugs so much, the true vim users, doesn't need this stuff, it's need only complier to write text