LunarVim / bigfile.nvim

Make editing big files faster 🚀
Apache License 2.0
307 stars 15 forks source link

Detected files are opened without any content when open from whole directory #19

Open gmmrr opened 10 months ago

gmmrr commented 10 months ago

When the detected file is opened in a nvim-tree, it always shows with empty content. But if I nvim XXX.xml directly, it works as expectation.

I have tried to disable nvim-tree, nvim-tree probably is not the issue.

This is the view of opening single file by nvim XXX.xml (though file in pic below is .osm, it is viewed as xml, and other xml files cannot be opened correctly as well)

Screenshot 2023-12-18 at 17 07 24

and this is the view of opening from directory by nvim . and called by nvim-tree

Screenshot 2023-12-18 at 17 08 17

This is my mininal config, probably same as default.

require("bigfile").setup {
  filesize = 2,

  pattern = { * },

  features = {
    "indent_blankline",
    "illuminate",
    "lsp",
    "treesitter",
    "syntax",
    "matchparen",
    "vimopts",
    "filetype",
  },
}

Tks for viewing, this plug-in is really useful and necessary for a data-sci developer ;)

LostNeophyte commented 10 months ago

interesting, I can't reproduce this with my current config with neotree or with lunarvim

juliuskreutz commented 8 months ago

Hi! I actually have the exact same problem and can reproduce it with.

I get the same result as OP where I just get empty content. Can confirm, that this doesn't happen without nvim-tree

carlosala commented 7 months ago

I can reproduce as well with nvim-tree. If you do :e it reopens as expected, but it's not the best experience