Vimscript is dead - How to configure Nvim with Lua!

Vimscript is dead - How to configure Nvim with Lua!

John McBride

2 года назад

50,889 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@markmcdonnell
@markmcdonnell - 06.07.2022 22:11

Can you share your dotfile repo please. Thanks. This was super useful

Ответить
@toranshaw4029
@toranshaw4029 - 06.07.2022 23:40

Would it be better to learn VIM first or can I go straight to learning NeoVIM?

Ответить
@johnnybrasseur5156
@johnnybrasseur5156 - 07.07.2022 13:46

Q: isn't lua embeded in legacy vim ?

Ответить
@need4eat
@need4eat - 08.07.2022 01:58

Thanks a lot for this! Really needed this.

Ответить
@soytxemaleon
@soytxemaleon - 08.07.2022 18:02

Do you share that config on github? I looked for it but I didn't find it

Ответить
@jr_Linux
@jr_Linux - 09.07.2022 18:42

dude thank you i've been looking for a way to config neovim and this was really simple compared to trying to figure it out myself. it was a little confusing and i don't know code but as someone who loves awesomeWM i appreciate lua and you really helped out.

Ответить
@guobreakinglead7147
@guobreakinglead7147 - 10.07.2022 20:09

Hey, what's your background music? It sounds great

Ответить
@scc4213
@scc4213 - 11.07.2022 07:58

useful

Ответить
@rsmith31416
@rsmith31416 - 13.07.2022 23:04

In the first part of your video, you're spreading a lot of misinformation. Vim9 script is not a new technology. It was already available in vim 8.2 and most of the initial work was done in the vim9 fork of vim, which was merged back later on. It would be far more accurate to say that when significant changes happen in a codebase, more bugs are likely to appear, just like in any other language (including Lua), and that's of course, a very weak argument for dismissing vim9 script in favor of Lua.

Additionally, the claim that your implementation of LSP for the Go language is more readable than the equivalent code in vimscript is extremely subjective. Lua is a great language, very minimal and elegant, but as part of a language binding, it is really verbose, full of indirections with a messy feel due to the use of namespaces. Again, it is not Lua's fault, since the same can be said of the language bindings for python, ruby in vim. I have yet to see a single example of a concrete implementation in which Lua in neovim is more readable than the equivalent vimscript, let alone vim9 script which is even more readable without the quirkiness of legacy vimscript.

Ответить
@mygamesm
@mygamesm - 18.07.2022 20:50

lua is like the opposite of java

Ответить
@MENTOKz
@MENTOKz - 20.07.2022 12:15

hmm u love to touch a file then open the file in vim when just doing the vim file.txt if u save it at all it makes that. Great video

Ответить
@lThePotatoCrew
@lThePotatoCrew - 21.07.2022 08:44

pop-os, my man!

Ответить
@Noname-hc4hc
@Noname-hc4hc - 22.07.2022 15:38

The typical problem with all those "cool Lua+Nvim" guys is that they never read language tutorials. So I've started to watch this video and, a miracle! I see him opening Lua reference.. but then I notice it's 5.4. Thanks God, my world stays the same as yesterday. They still haven't learnt the difference between Lua 5.1 and 5.4 )))

Ответить
@returned_to_monke8872
@returned_to_monke8872 - 25.07.2022 08:55

I just use emacs :V

Ответить
@kexuyo
@kexuyo - 27.07.2022 23:43

Can't help noticing you type :wqa every time. Maybe just try :x

Ответить
@pavel_trpn
@pavel_trpn - 28.07.2022 09:24

You said vimscript dead... every lua nvim config - vim.cmd([[blablablabla]])

Ответить
@tekalegn_amanuel_1
@tekalegn_amanuel_1 - 30.07.2022 02:50

god thank you. I have been looking for a long time and finally got on your video

Ответить
@eateat2934
@eateat2934 - 30.07.2022 06:25

I'm waiting for helix...

Ответить
@YannMetalhead
@YannMetalhead - 06.09.2022 01:54

Good video, thank you!

Ответить
@jonnykopp
@jonnykopp - 06.09.2022 15:14

Was just about to comment on the name clashing, took me way to long to figure out what I was doing lol.

Ответить
@calderonharoldkim8128
@calderonharoldkim8128 - 14.09.2022 08:21

Thanks man, I got the good habit of wanting to learn everytNice tutorialng before I start sotNice tutorialng (wNice tutorialch is impossible) tNice tutorials quick guide is what I

Ответить
@PainfulBBQ
@PainfulBBQ - 22.09.2022 21:11

I’m interested in learning Vim, as it is aesthetically pleasing, but this folder structure thing is such bullshit. Why have all these folders with magical names and not just specify them in require :/

Ответить
@aws96314
@aws96314 - 01.10.2022 20:03

I feel as if Neovim users want Vimscript to die just so they can feel better about their choice of using Lua. These two projects are separate for a reason and I wish Vim will remain minimal and avoids the hype around Neovim. I picked vim over Emacs just because I wanted my editor to remain minimal and not include every new stupid technology (i.e whatever vscode brings to the table). The Neovim user base is one of the most toxic ones out there and I wish they would just leave us alone

Ответить
@RootsterAnon
@RootsterAnon - 01.10.2022 22:00

Can you do a video on how to incorporate go debugger with nvim-dap-go? I really liked this video as I'm switching to Astro Vim and would really know how to set up a debugger. Thank you.

Ответить
@kubahasek
@kubahasek - 10.10.2022 17:11

WOW! Thank you man, just getting into neovim and this was what I was looking for to get going!

Ответить
@sujeewa8067
@sujeewa8067 - 16.10.2022 14:34

Thank you! This was really helpful! ❤

Ответить
@theaungmyatmoe
@theaungmyatmoe - 05.11.2022 22:27

LoL cool explnation instead of reading a bunch of line of text

Ответить
@Kiryana
@Kiryana - 06.11.2022 23:51

Very awesome! Tyvm ❤

Ответить
@birdofhermes6152
@birdofhermes6152 - 11.11.2022 18:32

Thanks!

Ответить
@td0999
@td0999 - 29.11.2022 03:06

Lua changed my life.

Ответить
@iduran
@iduran - 02.12.2022 20:23

May I ask what boom arm you are using for your mic? It looks really cool!

Ответить
@sdscode
@sdscode - 11.12.2022 03:33

Really awesome/productive/efficient explanation/video, big thank you!

Ответить
@DanielTubul
@DanielTubul - 16.12.2022 17:00

Great explanations with even better documentation.
Good job mate

Ответить
@eiakimorooka1809
@eiakimorooka1809 - 02.01.2023 18:07

I just started learning lua today, but lua to me felt like (perl+javascript+python)/3. Thank you for the amazing tutorial!

Ответить
@Linuxdirk
@Linuxdirk - 09.02.2023 15:49

I wonder why Vim developers didn't simply use Lua, too.. They break backwards compatibility and waste this once-in-a-lifetime opportunity by introducing a stupid single purpose made-up scripting language instead of an already established, widely used and documented embedded programming language.

Ответить
@wyfyj
@wyfyj - 11.02.2023 09:30

Thank you for this resource

Ответить
@arzelaascoli6765
@arzelaascoli6765 - 12.03.2023 00:58

Why do you call the API "endpoints?" That doesn't make any sense, you're not making RPCs or sending data through a network, you're just calling library functions.

Ответить
@rivelmods
@rivelmods - 28.05.2023 06:21

I am still getting errors with packer after renaming

Ответить
@vikingthedude
@vikingthedude - 26.08.2023 06:02

We use packer to install plugins. But how do we install packer? Does it come shipped with neovim?

Ответить
@BristlyBright
@BristlyBright - 06.10.2023 23:55

I appreciate the "slow" tempo and the basic approach to this topic. I have previously watched ThePrimagen and his nvim setup, and even though i prefer his approach in general, i really do appreciate your video more as it is more basic and more explanatory. Thank you!!!

Ответить
@mazenmohsen3423
@mazenmohsen3423 - 23.10.2023 04:13

Any name or reference to the music running in the bg?

Ответить
@bernardfitzgerald5697
@bernardfitzgerald5697 - 27.01.2024 14:14

Nice one!

Ответить
@anphambinh6027
@anphambinh6027 - 03.12.2024 14:23

The title is just ... boom!

This is the last month of 2024, and Vimscript isn't dead yet, in fact, some maintainers of Neovim like justinmk still use Vimscript to configure Neovim

Ответить