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

There are some errors when I use Joshuto to preview some .lua files #503

Open
5huanghuai opened this issue Feb 29, 2024 · 1 comment
Open

Comments

@5huanghuai
Copy link

When I use Joshuto to preview and edit some Lua files, I encounter some problems.

  1. Preview problem:
    There are no problems with most of the .lua files. However, this issue only occurs with some special .lua files. I don't know why. The special .lua file causing the issue is shown below:
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
  vim.fn.system({
    "git",
    "clone",
    "--filter=blob:none",
    "https://github.com/folke/lazy.nvim.git",
    "--branch=stable",
    lazypath,
  })
end
vim.opt.rtp:prepend(lazypath)

-- Configure lazy.nvim
require("lazy").setup({
  spec = {
    { import = "plugins" },
  },
  concurrency = 24,
  defaults = { lazy = true, version = nil },
  install = { missing = true, colorscheme = { "tokyonight" } },
  ui = { border = "rounded" },
})

vim.keymap.set("n", "<leader>L", "<cmd>:Lazy<cr>", { desc = "Plugin Manager" })
  1. Edit problem:
    The same special .lua file cannot be opened in Joshuto.
@kamiyaa
Copy link
Owner

kamiyaa commented Mar 10, 2024

Sorry, what issues are you having?

I copied the contents you provided in a .lua file and was able to open it with my text editor through joshuto

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

2 participants