Create Neovim Plugins with Lua

preview_player
Показать описание
A small video on how to create Neovim plugins using Lua.

Contact:

#neovim
#vim
Рекомендации по теме
Комментарии
Автор

This is incredible! Please make more tutorials on making Neovim plugins with Lua. There just aren’t quality tutorials for Lua plugins on YouTube! You make it so simple and straightforward.

jinhoyoon
Автор

I had an issue with printing Hello World at 1:20, and realised that it was because the method of setting rtp at 1:10 didn't work for me. Here's the solution for anyone facing this problem:

At 1:10, after entering nvim, check that the current directory is in the rtp using the vim command ":echo &rtp". In the output you should see a dot representing the current directory.

However, this didn't work for me, so I found a solution where you instead open nvim with
nvim -c "set rtp+=."
This works because according the "man nvim", you'll notice that --cmd runs BEFORE any vimrc, so it probably gets overridden. -c runs after reading the file, so it takes precedence.

vikingthedude
Автор

Great video! Finally one that's nice and short and covers all the basics so I can get started coding right away without having to sit there and watch a 20min tutorial on every little detail.

bryttontsai
Автор

starting nvim with --cmd "set rtp+=./" did not work with me. After a couple of tries and reading the document starting nvim with -c "set rtp+=./" worked for me. Just leaving it here for someone who might face this in future. I am using neovim 0.10. Thanks for the amazing tutorial on this. Loved it!

madhavbhat
Автор

(Here from Reddit but posting here for the YouTube boost...) This was great! Feel free to expand into a series. :-)

willernst
Автор

Thanks so much for this David! This was a real leg up for me getting started! :)

stevecanny
Автор

Simple and to the point, perfect! Thank you!

LudoTechWorld
Автор

The rtp stuffs works fine without using the fixes in the comments. One thing that doesn't work for me is when I try :lua require"myplugin". Turns out that I just need to refer to my lua filename, not the folder name. In the case of this tutorial, its :lua require"init"

mumk
Автор

Awesome video! Would you have a plan to make a video about how to create automated tests for Lua plugins?

hajimesuzuki
Автор

great video! Do you have a guide on how to setup neovim with native lsp for javascript/typescript development with eslint/prettier etc?

arpanchattopadhyay
Автор

Hi! I was wondering where i can get the app.test.js file?

hydgunneo
Автор

@DevOnDuty, Thanks for the video, could you please let me know the fonts?

mitzomevan
Автор

I didn't get jobsend function argument.

jeetak
Автор

Could you please make a video for reactjs and chrome nvim-dap setup?

ahmedrezk
Автор

How did you setup the LSP for lua completion?

mattearas
Автор

Will you make a custom editor ( like nim/nvim ) with lua only.

konlsns
Автор

Hi, I followed your tutorial, but the init.lua won't run when require my own plugin, rtp has been set and no error shown.

JohnLinCN
Автор

DO NOT name your inner directory '{something}.nvim', as it will not work. DevOnDuty named his 'luaPlugin' so it was fine.

luaPlugin.nvim/lua/luaPlugin -- fine
--not fine

took me too long to figure out that one

Readraid_