Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LLPStartPreview command not appearing in command list #124

Open
ghost opened this issue Jul 31, 2022 · 11 comments
Open

LLPStartPreview command not appearing in command list #124

ghost opened this issue Jul 31, 2022 · 11 comments

Comments

@ghost
Copy link

ghost commented Jul 31, 2022

Expected behavior

The usage section of the README.md says that entering in :LLPStartPreview should present the LaTeX document as a PDF. I am not getting this, since the command does not appear. Are there some prerequisites I am missing?

Actual behavior

Tell us what happens instead

Steps to reproduce

Tell us how it occurs

System configuration

  • Vim version:
# output of `vim --version`
  • Platform:
@theSafdarAwan
Copy link

same here

@reDpz
Copy link

reDpz commented Apr 9, 2023

Check if the plugin is loaded, it wasn't loaded it automatically. The command is different depending on your plugin manager, for me it was
:Lazy load vim-latex-live-preview

@leana8959
Copy link

I'm having the same issue.

I tried :Lazy load vim-latex-live-preview and it didn't work.
I also tried to change the plugin installation line to { "xuhdev/vim-latex-live-preview", lazy = false } and it didn't work either. :/

@reDpz
Copy link

reDpz commented Apr 28, 2023

do you have a repo of your nvim files? like something i can use to essentially emulate your setup

@leana8959
Copy link

leana8959 commented Apr 28, 2023

Of course! Thank you for your help!
Here are my dotfiles

I think I commented out LLP for the moment in init.lua so you might need to uncomment that, I didn't change anything neovim-related beside this commenting that line out since trying this yesterday. Thank you!

Update: I added some unrelated stuff to my nvim config to my dotfiles. I checked again before pushing, the command in question is still not coming up

@reDpz
Copy link

reDpz commented Apr 29, 2023

my fucking eyes.

On another note tho, I tried and I couldn't get it working. Not even my old nvim LLP works on this machine. I think it's got to do with python but checkhealth provider says I have python installed with pynvim.

When the plugin loads it says "python required" do you get the same thing? (it only happens if you manually load it)

@leana8959
Copy link

leana8959 commented Apr 29, 2023

my fucking eyes.

If you think there's something I can improve, please just tell me.

I don't see "python required". In fact, I can't see LLP anything in the autocompletion when I type :LL and then tap tab.

@xuhdev
Copy link
Owner

xuhdev commented Apr 29, 2023

If there's no error message popping up, the only reason I can think of is whether you have used your package manager properly. See the command: https://github.com/xuhdev/vim-latex-live-preview/blob/master/plugin/latexlivepreview.vim#LL316C37-L316C37 Only way to stop the command from being defined is lack of python, which should produce an error message.

Unfortunately I'm not familiar with the status of plugin managers. It might be a good idea to consult the plugin manager developers that you are using.

@leana8959
Copy link

I see, thank you for your reply. I'll try to file an issue or ask a question with the Lazy.nvim devs.

@reDpz
Copy link

reDpz commented Apr 29, 2023

If you think there's something I can improve, please just tell me.
To each their own, i was sitting in a dark room and got flashbanged by neovim loading youe theme.

I don't see "python required". In fact, I can't see LLP anything in the autocompletion when I type :LL and then tap tab.

Have you tried manually loading the plugin? Try turning lazy on lazy = true then load it and see if you get the error.

Also I dont get any LLP suggestions either.

Check if your python provider is availabe too just in case :checkhealth provider

@dbolger
Copy link

dbolger commented Jan 31, 2024

Anyone have any luck setting this up? I've got a python provider in my checkhealth, and running :echo g:loaded_vim_live_preview returns 1. :echo has('python') is returning 0 but `:echo has('python3') returns 1.

I'm using NvChad with Neovim, loading the plugin into the lua/plugins/init.lua file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants