Fold markdown headings in Neovim with a keymap

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 พ.ย. 2024

ความคิดเห็น • 14

  • @pratyushudhani
    @pratyushudhani 2 หลายเดือนก่อน

    I keep getting error no fold found but must be a lazy vim issue because I cannot get the folds to work in functions as well

    • @linkarzu
      @linkarzu  2 หลายเดือนก่อน

      If you see that when pressing enter is because folds haven't been created, you create them by running leader+m+f+k for example, does that work?
      Also, 2 more questions:
      1. What neovim version do you have?
      2. Are you using the lazyvim.org distro?

    • @pratyushudhani
      @pratyushudhani 2 หลายเดือนก่อน

      Ok if you're using just the lazy package manager without the default plugins the fold won't work. I needed the lazy.extras.markdown plugin for this to work. Anyway I had to install other lazy defaults too but that's fine ig.

    • @linkarzu
      @linkarzu  2 หลายเดือนก่อน

      @@pratyushudhani Great point, I do use the markdown lazyextra, I go over all of this in my video:
      My complete Neovim markdown setup and workflow in 2024
      th-cam.com/video/c0cuvzK1SDo/w-d-xo.html

    • @pratyushudhani
      @pratyushudhani 2 หลายเดือนก่อน

      @@linkarzu Yeah that got the folds to work. Getting the highlights to work was another thing though 😂.
      Thanks a lot for the detailed dot files man I really appreciate these. They make me wanna finally start commenting my code too 😅
      This config is the best markdown nevoim config I can find ❤️

    • @linkarzu
      @linkarzu  2 หลายเดือนก่อน

      @@pratyushudhani I'm glad you've found value in the dots. I don't document them well out of good will tough, I do it cuz I won't remember s#!7 when I look back at some things a few years from now, so it's just for future me but glad to hear it helps others!