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

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

Open
gmmrr opened this issue Dec 18, 2023 · 3 comments
Assignees

Comments

@gmmrr
Copy link

gmmrr commented Dec 18, 2023

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 LostNeophyte self-assigned this Dec 18, 2023
@LostNeophyte
Copy link
Member

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

@juliuskreutz
Copy link

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

  • Having nvim-tree installed
  • Open nvim in directory with big files
  • Try to open file with nvim-tree

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

@carlosala
Copy link

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

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

4 participants