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
Idiomatic way to set viewer on neovim given script load order? #2740
Comments
I would propose using
Sort of, but it's slightly hard as I would need to check if the settings used at init time have been changed at some later time and then warn. And I would need to specifically mark the settings that should be configured early. Instead, I generally always ask people to avoid putting their VimTeX settings in In any case, I believe my above advice should work well. |
Thanks for the quick response. I can make a few notes:
Thanks again! |
What I mean was not Alternatively, I would add an return {
{
"lervag/vimtex",
init = function()
vim.g.vimtex_view_method = "skim"
end,
},
-- … I think this is a clear way than to add the option above the way you did. |
Thanks! |
Description
This is a bit of a followup to #2476. I was trying to get my install of neovim to recognize Skim as the viewer, but
:VimtexInfo
kept giving "General." Upon seeing the suggestion in the issue above, I now havevimtex_view_method
set in myinit.lua
file. Here's the truncated version of:scriptnames
:In this list,
~/.config/nvim/ftplugin/tex.lua
is where I was settingvim.g.vimtex_view_method = "skim"
, but it wasn't taking. So, like I said, I now have it as a line in my init.lua. This works, but it strikes me as unideal, as the rest of the settings (including other Skim settings) are in the ftplugin file.So what would be the most idiomatic way, given the above, of ensuring that the viewer is set at the right time? Would it make sense to provide a warning about this in the documentation, like with
g:vimtex_include_indicators
?Do you use a latexmkrc file?
No
VimtexInfo
The text was updated successfully, but these errors were encountered: