Writing Plugins - It's Never Been Easier (NeovimConf 2022)

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

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

  • @runtimejpp
    @runtimejpp 11 หลายเดือนก่อน +5

    love this guy, theoretical physicist teaching about vim, neovim and lua. the best

    • @devonduty
      @devonduty  11 หลายเดือนก่อน +1

      Thank you :)

  • @blahblah-rn1ts
    @blahblah-rn1ts ปีที่แล้ว +19

    Now we just need to all agree that when you write a plugin you finish it in a way that it's useable instantly upon installation and doesn't require reading through 10 pages of documentation (maybe even from other plugins as dependencies) (I'm looking at you ... entire collection of LSP plugins)

    • @devonduty
      @devonduty  ปีที่แล้ว +7

      Indeed! One should always deliver good default values so that users don't need to set everything up themselves.

  • @FelipeV3444
    @FelipeV3444 5 หลายเดือนก่อน +1

    Look at teej and Prime being impressed with ChatGPT lmao. Thanks for the video! I've been wanting to write a simple plug-in for learning purposes.

    • @devonduty
      @devonduty  5 หลายเดือนก่อน

      Yeah, we've all been impressed by ChatGPT, back then, it was quite new :)

  • @patriciourrutia2297
    @patriciourrutia2297 ปีที่แล้ว +1

    Great! Thanks Dev! I was waiting for this video. I watched live and it was awesome!!!

  • @daltonyon
    @daltonyon 5 หลายเดือนก่อน +1

    Great talk, help me to understand how to create a new plugin

  • @mandos22
    @mandos22 ปีที่แล้ว +1

    Thanks for great talk, I enjoyed it a lot and ChatGPT looks neat and scary at same time :)

  • @andrewstone3032
    @andrewstone3032 ปีที่แล้ว +2

    hilarious, i didn't realize this was you when i was watch the conf

  • @Oswee
    @Oswee ปีที่แล้ว +2

    This was really great talk!!!

  • @艾曦-e4g
    @艾曦-e4g ปีที่แล้ว +3

    It is just so cool. I wonder can this use tree-sitter to index the whole project. This is just for finding the todo in comments of the current buffer, can this done by vimgrep along with the tree-sitter to deal with the comment staff. Another thing is can todo be case insensitive, todo flollowed by ":" should be its pattern. :c

    • @devonduty
      @devonduty  ปีที่แล้ว +2

      Hi, it would be possible but probably a bit inefficient to parse all files first. I think for this use case, vimgrep is more suitable (even though it searches for all text, not just comments). The Regex I used is of course very minimalistic, one can enhance it by ":", as you said, or include more words like FIXME, BUG etc. It was just for demonstration purposes.

  • @liminal27
    @liminal27 ปีที่แล้ว +1

    Excellent. Thank you.

  • @cristobaljavier
    @cristobaljavier ปีที่แล้ว

    Excellent video thanks!

  • @Awwe12675
    @Awwe12675 ปีที่แล้ว +1

    I love this channel

  • @iamroot6338
    @iamroot6338 ปีที่แล้ว +2

    This is great. Can you share your slides

    • @devonduty
      @devonduty  ปีที่แล้ว

      Thanks! Here are the slides and the code: github.com/David-Kunz/NeovimConf

  • @jarjar4780
    @jarjar4780 ปีที่แล้ว +1

    What's the difference in creating the plugin file inside your nvim/lua directory, so you can just require it without having to set your runtimepath. Is it just a convention so that it is isolated from the rest of your config?
    Also thanks a lot for the really insightful video!

    • @devonduty
      @devonduty  ปีที่แล้ว +1

      Thanks, Jar Jar! Yes, that's also a valid option. Personally, when creating new plugins, I like to not change my Neovim config and just add it quickly to the runtime path. What's also possible: Some package managers allow you to specify local plugins, e.g. Lazy.nvim, that's also quite handy.

  • @VovaY
    @VovaY ปีที่แล้ว +1

    What TODO plugin did you use before writing yours?

    • @devonduty
      @devonduty  ปีที่แล้ว +2

      I haven't used any plugin, but if I would use one, it would probably be github.com/folke/todo-comments.nvim (Folke's plugins are always awesome).

  • @shaileshsundram
    @shaileshsundram ปีที่แล้ว

    Which font are you using?

    • @devonduty
      @devonduty  ปีที่แล้ว +2

      It's Iosevka

  • @PragMero
    @PragMero 2 วันที่ผ่านมา

    Eeew, Mac, you should be using linux

  • @anasouardini
    @anasouardini ปีที่แล้ว

    nvim defaults are really weird and impractical.

    • @devonduty
      @devonduty  ปีที่แล้ว

      Some of them are. At least they are better than Vim's.

    • @anasouardini
      @anasouardini ปีที่แล้ว

      @@devonduty confirmed