fancy config editing with vim for json?

69 views
Skip to first unread message

Sebastian Gödecke

unread,
Jan 29, 2024, 9:02:49 AMJan 29
to vim...@googlegroups.com
Hi there, 
is there a way to load a schema for json in vim and then have the right options in autocomplete?

Thanks in advance. 

--
Mit freundlichen Grüßen
Sebastian Gödecke

Sebastian Gödecke

unread,
Mar 7, 2024, 4:22:04 AMMar 7
to vim...@googlegroups.com
Ping....
is there another way to get this behavior?
Regards Sebastian

Christian Brabandt

unread,
Mar 7, 2024, 7:59:59 AMMar 7
to vim...@googlegroups.com
Hi,
I am not sure what exactly you want and what you mean with loading the
schema and setting the options for auto complete. I guess you may want
to look at the following plugin however. https://github.com/Quramy/vison

Thanks,
Chris

On Do, 07 Mär 2024, 'Sebastian Gödecke' via vim_use wrote:

> Ping....
> is there another way to get this behavior?
> Regards Sebastian
>
> Am Mo., 29. Jan. 2024 um 15:02 Uhr schrieb Sebastian Gödecke <
> simps...@googlemail.com>:
>
> > Hi there,
> > is there a way to load a schema for json in vim and then have the right
> > options in autocomplete?
> >
> > Thanks in advance.
> >

Mit freundlichen Grüßen
Christian
--
Telling the truth to people who misunderstand you is generally promoting
a falsehood, isn't it?
-- A. Hope

Sebastian Gödecke

unread,
Mar 8, 2024, 1:57:03 AMMar 8
to vim...@googlegroups.com
Am Do., 7. März 2024 um 13:59 Uhr schrieb Christian Brabandt <cbl...@256bit.org>:
Hi,
I am not sure what exactly you want and what you mean with loading the
schema and setting the options for auto complete. I guess you may want
to look at the following plugin however. https://github.com/Quramy/vison


Ah okay, i take a look at this. 

But what i mean is this here:
It's for VSCode. When editing the config-file from meshcentral, there will be all options for meshcentral with an explanation for the options, autocomplete etc. 

I thought, something similar will be available for vim. 

Regards Sebastian

 
Thanks,
Chris

On Do, 07 Mär 2024, 'Sebastian Gödecke' via vim_use wrote:

> Ping....
> is there another way to get this behavior?
> Regards Sebastian
>
> Am Mo., 29. Jan. 2024 um 15:02 Uhr schrieb Sebastian Gödecke <
> simps...@googlemail.com>:
>
> > Hi there,
> > is there a way to load a schema for json in vim and then have the right
> > options in autocomplete?
> >
> > Thanks in advance.
> >

Mit freundlichen Grüßen
Christian
--
Telling the truth to people who misunderstand you is generally promoting
a falsehood, isn't it?
                -- A. Hope

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/Zem6RtT8Gwm95A5/%40256bit.org.

Alessandro Antonello

unread,
Mar 8, 2024, 6:39:18 AMMar 8
to vim...@googlegroups.com
Hi, Sebastian.

If you don't mind to install NodeJS, you can try CoC (https://github.com/neoclide/coc.nvim). It has a lot of plugins to several different languages and one can port plugins that work with VSCode to work with CoC. In fact, I use the 'coc-json' plugin that does just that: get a JSON schema and pop the completion for you. There is a little bit of configuration though.

Regards.

Sebastian Gödecke

unread,
Mar 8, 2024, 8:17:53 AMMar 8
to vim...@googlegroups.com
Am Fr., 8. März 2024 um 12:39 Uhr schrieb Alessandro Antonello <antone...@gmail.com>:
Hi, Sebastian.

If you don't mind to install NodeJS, you can try CoC (https://github.com/neoclide/coc.nvim). It has a lot of plugins to several different languages and one can port plugins that work with VSCode to work with CoC. In fact, I use the 'coc-json' plugin that does just that: get a JSON schema and pop the completion for you. There is a little bit of configuration though.

Regards.

Yeah, that's great. Exactly what i mean. Thanks
Regards Sebastian

 
Reply all
Reply to author
Forward
0 new messages