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

Поделиться
HTML-код
  • Опубликовано: 30 сен 2024

Комментарии • 29

  • @blahblah-rn1ts
    @blahblah-rn1ts Год назад +18

    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.

  • @艾曦-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.

  • @runtimejpp
    @runtimejpp 9 месяцев назад +4

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

    • @devonduty
      @devonduty  9 месяцев назад +1

      Thank you :)

  • @andrewstone3032
    @andrewstone3032 Год назад +2

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

  • @daltonyon
    @daltonyon 4 месяца назад +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 :)

  • @Oswee
    @Oswee Год назад +2

    This was really great talk!!!

  • @patriciourrutia2297
    @patriciourrutia2297 Год назад +1

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

  • @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.

  • @liminal6823
    @liminal6823 Год назад +1

    Excellent. Thank you.

  • @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

  • @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).

  • @Awwe12675
    @Awwe12675 Год назад +1

    I love this channel

  • @FelipeV3444
    @FelipeV3444 3 месяца назад

    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  3 месяца назад

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

  • @cristobaljavier
    @cristobaljavier Год назад

    Excellent video thanks!

  • @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

  • @shaileshsundram
    @shaileshsundram Год назад

    Which font are you using?