Myzel394 / jsonfly.nvim

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

feat: Allow jsonfly on unnamed buffers #7

Closed mimre25 closed 2 months ago

mimre25 commented 2 months ago

The changes here simply check if the filetype is json, and if so, continue to assume an lsp is attached. Otherwise the fallback code is triggered that works without an LSP.

I've left some discussion points in #5.

Myzel394 commented 2 months ago

Thanks for the PR! As discussed in the issue, we will not implement this. Since jsonfly will fallback to the native lua implementation anyway if the LSP fails, we don't need to merge this