kaarmu / typst.vim

Vim plugin for Typst
MIT License
281 stars 24 forks source link

syntax only #94

Closed 3052 closed 4 months ago

3052 commented 5 months ago

I want to use syntax only, no plugins

but if I just use syntax/typst.vim, it causes errors

kaarmu commented 5 months ago

Okay. I've been extremely busy recently which is also why I haven't opened a PR to vim, but I will try to look at this during the weekend.

kaarmu commented 4 months ago

syntax/typst.vim uses autoload functions to check user-defined options and is probably why you get errors.

Can you describe what exactly you want? What do you not want to load and why? Currently, there is not much more in typst.vim than syntax.

3052 commented 4 months ago

I just want syntax only, I dont care about anything else. Ideally I would like to just take syntax/typst.vim and dump it into my Vim installation for use

kaarmu commented 4 months ago

In that case, I would just grab the file and remove all lines that start with runtime or call.

3052 commented 4 months ago

Ideally I would like to just take syntax/typst.vim and dump it into my Vim installation for use - that means no editing

kaarmu commented 4 months ago

You are requesting to separate out parts of the plugin for your special use case. There is no way of going around that you need to do some manual steps yourself. For this, you only need to remove 4 lines which is less effort than asking me to do it for you.

3052 commented 4 months ago

all you have to do is wrap any logic in "if" statement, so that it only runs if the user has plugin installed. why is that an issue?