• bjornsno
    link
    fedilink
    arrow-up
    12
    ·
    1 month ago

    Except if it’s a single line file, only god can help you then. (Or running prettier -w on it before opening it or whatever.)

    • fl42v@lemmy.ml
      link
      fedilink
      arrow-up
      7
      ·
      1 month ago

      4.2 megs on one line? Vim probably can handle it fine, although syntax won’t be highlighted past a certain point

      • bjornsno
        link
        fedilink
        arrow-up
        5
        ·
        1 month ago

        I’ve accidentally opened enormous single line json files more than once. Could be lsp config or treesitter or any number of things but trying to do any operations after opening such a file is not a good time.

        • fl42v@lemmy.ml
          link
          fedilink
          arrow-up
          1
          ·
          1 month ago

          Yeah, very well may be. LSPs always slow down opening big files, so I usually inspect those with an empty/different config