chomosuke / typst-preview.nvim

Low latency typst preview for Neovim
GNU General Public License v3.0
254 stars 16 forks source link

Add option to overwrite open link shell command #7

Closed geeker-one closed 8 months ago

geeker-one commented 10 months ago

If it can be configured, I would be very grateful.

chomosuke commented 9 months ago

It is not yet implemented yet, I will implement it sometimes next month.

jskherman commented 9 months ago

+1, it would be nice to pass a different open_cmd (e.g. to use a less bloated browser) to the logic here from the plugin setup.

Sorry for the noob question (I'm new to vim/nvim) but would getting the custom open_cmd parameter from the require'typst-preview'.setup{} via the local config variable (config.opts.open_cmd like config.opts.debug?) in the utils.lua file be the way to go?

chomosuke commented 9 months ago

Good morning,

I have gotten a little bit more busy recently and probably won't be able to implement this util February. However, I would be grateful if one of you @jskherman @geeker-one would make a pull request implementing and documenting this feature. I am thinking of an option that if not nil would overwrite open_cmd on utils.lua line 56.