Тёмный

NeovimConf 2022: Lua, a Primer 

John McBride
Подписаться 7 тыс.
Просмотров 18 тыс.
50% 1

► Live on twitch: twitch.com/joh...
► Twitter: / johncodez
► Home page: johncodes.com
Let's take a look at Lua; how to use it, how it integrates with NeoVim, and how you can get going with it quickly.
#johncodes
🚀 SUMMARY:
This talk originally appeared live as part of NeovimConf 2022 live on the Primeagens stream over on Twitch. In this talk, I discuss how to use Lua and how you can get started with it quickly. We also touch on how you can use it to configure your neovim configuration. Finally, we touch on some of the powerful APIs and interfaces available through Lua to create plugins and simple scripts.
Download Lua: www.lua.org/do...
Lua reference manual: www.lua.org/ma...
Nvim Lua docs: neovim.io/doc/...
The GitHub Nvim Lua Guide: github.com/nan...
🤔 About:
Hi all, I’m John, an experienced software engineer and open source software enthusiast. I make fun and informative videos about tech, engineering, productivity, and life! Like, comment, and subscribe for more!!

Опубликовано:

 

7 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 20   
@pratyushrao7979
@pratyushrao7979 6 месяцев назад
Lua mentioned! Let's go brazillll
@dan_le_brown
@dan_le_brown 4 месяца назад
This was a good watch to get started understanding Lua and Neovim
@monugupta32
@monugupta32 Год назад
This is wonderful, I'm starting with lua & it's manual, the way lua is used in neovim config with vims api is something i found confusing off the bat.
@pepsiplease69
@pepsiplease69 10 месяцев назад
Very nice tutorial on lua, thanks for that. I think I’ll start getting into lua pretty soon now. I already made the switch from vim to nvim so learning lua was just something on the back burner for me to do. A couple of things. Love the ‘jk’ alias btw.. I use a dvorak keyboard so it’s ‘tn’ for me since my home row is ‘htns’ on the right hand. I also have the following maps which are very much essential shift-q maps to :q shift-w maps to :w shift-x maps to :x And another lifesaver is the ‘entr’ utility. In tmux you can run entr in one pane and it will watch for changes to a file and if it’s been touched or saved, entr will run a command that you want. So you can set that up to run something everytime you save your file in vim pane, and you don’t have to jump to the other tmux pane to rerun a command. I find it extremely helpful..
@iconoclastsc2
@iconoclastsc2 10 месяцев назад
Thanks, this was useful.
@rajeshwarprasad9061
@rajeshwarprasad9061 9 месяцев назад
Having a data structure which is a mix of array and dictionary is genius
@Linuxdirk
@Linuxdirk Год назад
Lua returning `nil` for things it doesn't know is actually quite awesome. You can just do things like `print(v[99] or "I don't know.")`.
@rodelias9378
@rodelias9378 Год назад
Lua, a prime .. agen
@JohnCodes
@JohnCodes Год назад
haha!
@dannyize
@dannyize Год назад
Take a shot of vodka every time you hear "footgun".
@JohnCodes
@JohnCodes Год назад
I would be drunk.
@dannyize
@dannyize Год назад
I should add that I am a subscriber and that I liked the video. I had to google footgun. I was pleased that I had heard it correctly; my hearing is not as good as it was. Also, I am not a pro developer.
@destinlee
@destinlee Год назад
John awesome video. Enjoyed it live and this rewatch. Quick question. What tool do you use to display your keystrokes??
@JohnCodes
@JohnCodes Год назад
Thanks so much! The utility for getting your keystrokes onscreen is called "screenkey"
@destinlee
@destinlee Год назад
@@JohnCodes Thank you good sir!!
@GoogleUser-uv9bo
@GoogleUser-uv9bo 2 месяца назад
Yes yes, I learnt x in y minutes.
@shaileshsundram
@shaileshsundram Год назад
The talk is informative but the video quality is sub-par.
@JohnCodes
@JohnCodes Год назад
Yeah, they had some stream trouble trying to do the re-stream with multiple people. Hopefully next year it's better!
@BryanChance
@BryanChance 8 месяцев назад
Uppercase variables are used to indicate global? That's a terrible way to fix Lua's global by default thing. LOL
@lmnts556
@lmnts556 Год назад
They REALLY need to change it to indexing starting at 0, everyone should be adapting the same, not different things. It so silly and SO ANNOYING.
Далее
Why learn LUA?
6:24
Просмотров 10 тыс.
Vim Tips I Wish I Knew Earlier
23:00
Просмотров 62 тыс.
Нарвался на сотрудника ФСБ⚡️
01:00
Vimscript is dead - How to configure Nvim with Lua!
17:35
The Holy Grail of Neovim Note Taking
14:38
Просмотров 332 тыс.
Automatically Execute *Anything* in Nvim
11:03
Просмотров 71 тыс.
30 Vim commands you NEED TO KNOW (in just 10 minutes)
10:27
Why Is Lua So Popular?
8:03
Просмотров 94 тыс.
Vim As Your Editor - Introduction
12:24
Просмотров 894 тыс.
Where Lua Is Actually Used
9:25
Просмотров 16 тыс.
The Hidden Cost Of GraphQL And NodeJS
28:35
Просмотров 190 тыс.
My Forever Dev Workflow
16:02
Просмотров 88 тыс.
Premature Optimization
12:39
Просмотров 803 тыс.