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

Поділитися
Вставка
  • Опубліковано 29 січ 2025

КОМЕНТАРІ • 31

  • @runtimejpp
    @runtimejpp Рік тому +6

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

  • @yotubeaccoutsuperawesome
    @yotubeaccoutsuperawesome 2 місяці тому

    Extremely simple introduction, thank you.

  • @blahblah-rn1ts
    @blahblah-rn1ts 2 роки тому +20

    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  2 роки тому +7

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

  • @patriciourrutia2297
    @patriciourrutia2297 2 роки тому +1

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

  • @FelipeV3444
    @FelipeV3444 7 місяців тому +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  7 місяців тому

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

  • @Oswee
    @Oswee 2 роки тому +2

    This was really great talk!!!

  • @mandos22
    @mandos22 2 роки тому +1

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

  • @Awwe12675
    @Awwe12675 2 роки тому +1

    I love this channel

  • @liminal27
    @liminal27 Рік тому +1

    Excellent. Thank you.

  • @daltonyon
    @daltonyon 8 місяців тому +1

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

  • @cristobaljavier
    @cristobaljavier Рік тому

    Excellent video thanks!

  • @艾曦-e4g
    @艾曦-e4g 2 роки тому +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 роки тому +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.

  • @andrewstone3032
    @andrewstone3032 2 роки тому +2

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

  • @VovaY
    @VovaY 2 роки тому +1

    What TODO plugin did you use before writing yours?

    • @devonduty
      @devonduty  2 роки тому +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).

  • @jarjar4780
    @jarjar4780 2 роки тому +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  2 роки тому +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.

  • @iamroot6338
    @iamroot6338 2 роки тому +2

    This is great. Can you share your slides

    • @devonduty
      @devonduty  2 роки тому

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

  • @shaileshsundram
    @shaileshsundram 2 роки тому

    Which font are you using?

  • @anasouardini
    @anasouardini 2 роки тому

    nvim defaults are really weird and impractical.

    • @devonduty
      @devonduty  2 роки тому

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

    • @anasouardini
      @anasouardini 2 роки тому

      @@devonduty confirmed

  • @PragMero
    @PragMero 2 місяці тому

    Eeew, Mac, you should be using linux