Myzel394 / jsonfly.nvim

❴🦋❵ Fly through your JSON / XML / YAML files with ease. Search ✨ blazingly fast ✨ for keys via Telescope.
126 stars 2 forks source link

Add support for programming languages #4

Open Myzel394 opened 2 months ago

Myzel394 commented 2 months ago

Objects in Javascript, Tables in Lua, etc.

phisco commented 1 month ago

Thanks for this awesome plugin! Yaml would be a pretty neat addition too!

Myzel394 commented 1 month ago

I just tested yaml, and it worked for me! There's no preview, but I think this is an easy fix, I'll take a look at this soonish :D

This issue is more talking about like objects in Javascript like in this example:

export function runFunction() {
    const myObject = {
        hello: "world",
        luckyNumber: 13,
    };

    return myObject;
}

and then being able to access the contents of myObject when your cursor is inside of it. This seems to be a bit more difficult, but I'm trying my best to add it too!

phisco commented 1 month ago

🤔 ~it just worked? Like j on a yaml file and it worked? Maybe I missed the lsp~ 🤔 It works indeed! ft = { "json", "yaml" },

Myzel394 commented 1 month ago

@phisco as a note for you: I've just pushed some fixes that should make working with yaml and xml files now work properly. Make sure you're on the latest commit to see the changes.