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

  Рет қаралды 14,155

DevOnDuty

DevOnDuty

Күн бұрын

Пікірлер: 29
@blahblah-rn1ts
@blahblah-rn1ts Жыл бұрын
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 Жыл бұрын
Indeed! One should always deliver good default values so that users don't need to set everything up themselves.
@runtimejpp
@runtimejpp 10 ай бұрын
love this guy, theoretical physicist teaching about vim, neovim and lua. the best
@devonduty
@devonduty 10 ай бұрын
Thank you :)
@patriciourrutia2297
@patriciourrutia2297 Жыл бұрын
Great! Thanks Dev! I was waiting for this video. I watched live and it was awesome!!!
@mandos22
@mandos22 Жыл бұрын
Thanks for great talk, I enjoyed it a lot and ChatGPT looks neat and scary at same time :)
@Oswee
@Oswee Жыл бұрын
This was really great talk!!!
@FelipeV3444
@FelipeV3444 4 ай бұрын
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 4 ай бұрын
Yeah, we've all been impressed by ChatGPT, back then, it was quite new :)
@liminal27
@liminal27 Жыл бұрын
Excellent. Thank you.
@daltonyon
@daltonyon 4 ай бұрын
Great talk, help me to understand how to create a new plugin
@andrewstone3032
@andrewstone3032 Жыл бұрын
hilarious, i didn't realize this was you when i was watch the conf
@Awwe12675
@Awwe12675 Жыл бұрын
I love this channel
@艾曦-e4g
@艾曦-e4g Жыл бұрын
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 Жыл бұрын
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.
@cristobaljavier
@cristobaljavier Жыл бұрын
Excellent video thanks!
@jarjar4780
@jarjar4780 Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
What TODO plugin did you use before writing yours?
@devonduty
@devonduty Жыл бұрын
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).
@iamroot6338
@iamroot6338 Жыл бұрын
This is great. Can you share your slides
@devonduty
@devonduty Жыл бұрын
Thanks! Here are the slides and the code: github.com/David-Kunz/NeovimConf
@shaileshsundram
@shaileshsundram Жыл бұрын
Which font are you using?
@devonduty
@devonduty Жыл бұрын
It's Iosevka
@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
NeovimConf 2022: Lua, a Primer
30:10
John McBride
Рет қаралды 19 М.
Neovim & Extensibility - My Talk from Jane Street
35:00
TJ DeVries
Рет қаралды 49 М.
小丑家的感情危机!#小丑#天使#家庭
00:15
家庭搞笑日记
Рет қаралды 33 МЛН
НИКИТА ПОДСТАВИЛ ДЖОНИ 😡
01:00
HOOOTDOGS
Рет қаралды 2,6 МЛН
А что бы ты сделал? @LimbLossBoss
00:17
История одного вокалиста
Рет қаралды 10 МЛН
Я сделала самое маленькое в мире мороженое!
00:43
Кушать Хочу
Рет қаралды 4,8 МЛН
Let's create a Neovim plugin using Treesitter and Lua
13:52
DevOnDuty
Рет қаралды 13 М.
Developing a Neovim Docker Plugin from Scratch
23:16
Developer Voices
Рет қаралды 13 М.
ChatGPT.nvim - my new favorite NeoVim plugin
7:29
Aerbits
Рет қаралды 1,1 М.
The Struggle To Write a Treesitter Plugin for Neovim
43:34
If Coding Were Natural
Рет қаралды 4,8 М.
My Entire Neovim Setup From Scratch After 8 Years
10:20
DevOps Toolbox
Рет қаралды 42 М.
TakeTuesday E01: nvim-cmp
30:42
TJ DeVries
Рет қаралды 63 М.
Automatically Execute *Anything* in Nvim
11:03
TJ DeVries
Рет қаралды 73 М.
Writing My Own Database From Scratch
42:00
Tony Saro
Рет қаралды 245 М.
Your First Vim Plugin
36:38
thoughtbot
Рет қаралды 60 М.
小丑家的感情危机!#小丑#天使#家庭
00:15
家庭搞笑日记
Рет қаралды 33 МЛН