Code Monkey home page Code Monkey logo

Comments (6)

hrsh7th avatar hrsh7th commented on August 29, 2024

Hi, @Ryuta69.

Your snippet seems to have tab character but JSON needs \t character.

from vim-vsnip.

 avatar commented on August 29, 2024

@hrsh7th
Thank you it fixed!

...Actually it works in VSCode, so I didn't know about that json_encode of vim can't work with tab.

neovim/neovim#7058

Would it be better to add an either of features below?

  1. Show error about this. vsnip#source#create won't alert because it works as json. get_complete_items is good place to alert.
  2. Replace tab into '\t' in body.

If it's ok to you, I will create PR.
If it's not fine, I will close this.

from vim-vsnip.

hrsh7th avatar hrsh7th commented on August 29, 2024

Oh... VSCode...

We should try substitute(join(l:body, "\n"), '\t', '\\t', 'g') 😂

from vim-vsnip.

 avatar commented on August 29, 2024

lol~

I just was afraid if you care about performance and gonna say "you just sed your snippet file". Okey, gonna try that one.

from vim-vsnip.

 avatar commented on August 29, 2024

it's just slow and I think it shouldn't be handled in vsnip, so I will close.

Thank you for your reply!

from vim-vsnip.

hrsh7th avatar hrsh7th commented on August 29, 2024

Thank you for your report.
I will consider to solve it in vsnip side.

from vim-vsnip.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.