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

bug: vimtex is broken (temporarily fixed, but needs proper fix) #230

Closed
3 tasks done
folke opened this issue Dec 29, 2022 · 9 comments · Fixed by #197
Closed
3 tasks done

bug: vimtex is broken (temporarily fixed, but needs proper fix) #230

folke opened this issue Dec 29, 2022 · 9 comments · Fixed by #197
Labels
bug Something isn't working

Comments

@folke
Copy link
Owner

folke commented Dec 29, 2022

Did you check docs and existing issues?

  • I have read all the lazy docs
  • I have searched the existing issues of lazy
  • I have searched the exsiting issues of the plugin I have a problem with

Neovim version (nvim -v)

nightly

Operating system/version

linux

Describe the bug

vimtext no longer works since plugins are no longer prepended to the rtp

Steps To Reproduce

install vimtex

Expected Behavior

should work

Repro

-- DO NOT change the paths and don't remove the colorscheme
local root = vim.fn.fnamemodify("./.repro", ":p")

-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "cache" }) do
  vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end

-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
  vim.fn.system({
    "git",
    "clone",
    "--filter=blob:none",
    "--single-branch",
    "https://github.com/folke/lazy.nvim.git",
    lazypath,
  })
end
vim.opt.runtimepath:prepend(lazypath)

-- install plugins
local plugins = {
  "folke/tokyonight.nvim",
    "lervag/vimtex",

  -- add any other plugins here
}
require("lazy").setup(plugins, {
  root = root .. "/plugins",
})

vim.cmd.colorscheme("tokyonight")
-- add anything else here
@folke folke added the bug Something isn't working label Dec 29, 2022
@folke folke changed the title bug: vimtex is broken bug: vimtex is broken (temporarily fixed, but needs proper fix) Dec 29, 2022
@folke folke closed this as completed in 3a1a10c Dec 29, 2022
@GersiD
Copy link

GersiD commented Dec 29, 2022

I also have this problem! But even with the new fix it still doesnt work for me on windows. Should I open a new issue?

Issue description = Very similar to above. Vimtex is set to lazy = false, but it still doesnt recognize when I open a tex file to load itself. Using packer this is not an issue but with lazy.nvim it is. I am not sure what the RTP is but I think this is the issue as my config hasn't changed.

@folke
Copy link
Owner Author

folke commented Dec 29, 2022

Can you show me the contents of: :lua vim.pretty_print(vim.opt.rtp:get())?

@folke folke reopened this Dec 29, 2022
@GersiD
Copy link

GersiD commented Dec 29, 2022

{ "C:\\Users\\Gersi\\AppData\\Local\\nvim", 
"C:\\Users\\Gersi\\AppData\\Local\\nvim-data\\lazy\\lazy.nvim", 
"C:\\Users\\Gersi\\scoop\\apps\\neovim\\current\\share\\nvim\\runtime", 
"C:\\Users\\Gersi\\scoop\\apps\\neovim\\current\\lib\\nvim", 
"C:\\Users\\Gersi\\AppData\\Local\\nvim-data\\lazy\\readme", 
"C:\\Users\\Gersi\\AppData\\Local\\nvim-data\\lazy\\lualine.nvim", 
"C:\\Users\\Gersi\\AppData\\Local\\nvim-data\\lazy\\nvim-web-devicons", 
"C:\\Users\\Gersi\\AppData\\Local\\nvim-data\\lazy\\vimtex", 
"C:\\Users\\Gersi\\AppData\\Local\\nvim-data\\lazy\\vimtex\\after", 
"C:\\Users\\Gersi\\AppData\\Local\\nvim-data\\lazy\\gruvbox", 
"C:\\Users\\Gersi\\AppData\\Local\\nvim-data\\lazy\\nvim-cmp", 
"C:\\Users\\Gersi\\AppData\\Local\\nvim-data\\lazy\\cmp-omni", 
"C:\\Users\\Gersi\\AppData\\Local\\nvim-data\\lazy\\cmp-omni\\after", 
"C:\\Users\\Gersi\\AppData\\Local\\nvim-data\\lazy\\lsp_lines.nvim", 
"C:\\Users\\Gersi\\AppData\\Local\\nvim-data\\lazy\\LuaSnip", 
"C:\\Users\\Gersi\\AppData\\Local\\nvim-data\\lazy\\friendly-snippets", 
"C:\\Users\\Gersi\\AppData\\Local\\nvim-data\\lazy\\heirline.nvim", 
"C:\\Users\\Gersi\\AppData\\Local\\nvim-data\\lazy\\alpha-nvim", 
"C:\\Users\\Gersi\\AppData\\Local\\nvim-data\\lazy\\which-key.nvim", 
"C:\\Users\\Gersi\\AppData\\Local\\nvim-data\\lazy\\grapple.nvim", 
"C:\\Users\\Gersi\\AppData\\Local\\nvim-data\\lazy\\plenary.nvim", 
"C:\\Users\\Gersi\\AppData\\Local\\nvim-data\\lazy\\nvim-treesitter", 
"C:\\Users\\Gersi\\AppData\\Local\\nvim-data\\lazy\\nvim-ts-rainbow", 
"C:\\Users\\Gersi\\AppData\\Local\\nvim-data\\lazy\\nvim-ts-autotag", 
"C:\\Users\\Gersi\\AppData\\Local\\nvim-data\\lazy\\nvim-ts-context-commentstring", 
"C:\\Users\\Gersi\\AppData\\Local\\nvim-data\\lazy\\gitsigns.nvim", 
"C:\\Users\\Gersi\\AppData\\Local\\nvim-data\\lazy\\aerial.nvim", 
"C:\\Users\\Gersi\\AppData\\Local\\nvim-data\\lazy\\nvim-lspconfig", 
"C:\\Users\\Gersi\\AppData\\Local\\nvim-data\\lazy\\mason-lspconfig.nvim", 
"C:\\Users\\Gersi\\AppData\\Local\\nvim-data\\lazy\\mason.nvim", 
"C:\\Users\\Gersi\\AppData\\Local\\nvim-data\\lazy\\neodev.nvim", 
"C:\\Users\\Gersi\\AppData\\Local\\nvim-data\\lazy\\null-ls.nvim", 
"C:\\Users\\Gersi\\AppData\\Local\\nvim-data\\lazy\\mason-null-ls.nvim", 
"C:\\Users\\Gersi\\AppData\\Local\\nvim-data\\lazy\\indent-o-matic", 
"C:\\Users\\Gersi\\AppData\\Local\\nvim-data\\lazy\\indent-blankline.nvim", 
"C:\\Users\\Gersi\\AppData\\Local\\nvim-data\\lazy\\nvim-colorizer.lua", 
"C:\\Users\\Gersi\\AppData\\Local\\nvim-data\\lazy\\smart-splits.nvim", 
"C:\\Users\\Gersi\\AppData\\Local\\nvim-data\\lazy\\nvim-notify", 
"C:\\Users\\Gersi\\AppData\\Local\\nvim-data\\lazy\\undotree", 
"C:/Users/Gersi/AppData/Local/nvim-data/lazy/bufdelete.nvim" }

@folke
Copy link
Owner Author

folke commented Dec 29, 2022

It's a windows issue. I'll fix it.

@GersiD
Copy link

GersiD commented Dec 29, 2022

Very wholesome, I am sorry I use windows I would understand if you wouldn't fix it haha.

@folke
Copy link
Owner Author

folke commented Dec 29, 2022

Can you check the lastest commit? if it doesn't work, an update rtp please :)

@GersiD
Copy link

GersiD commented Dec 29, 2022

You're awesome legit just pulled it and it works, just as you sent your comment! Your awesome! How did you know exactly what the problem was?

@folke
Copy link
Owner Author

folke commented Dec 29, 2022

Because I fixed building the rtp earlier today and seeing your inspect output, I knew right away I needed to normalize those paths on windows :)

@folke folke closed this as completed Dec 29, 2022
@GersiD
Copy link

GersiD commented Dec 29, 2022

Very wholesome! Thank you again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants