Neovim Plugin From Scratch: Testing + CI (Part 5)

  Рет қаралды 5,302

TJ DeVries

TJ DeVries

Күн бұрын

Пікірлер: 28
@seestevecode
@seestevecode Ай бұрын
I’ve loved this series so far and have learned a lot because of the way you teach. Thank you. I know it’s not really your thing but would be great if you would drop a video explaining more about CI, builds, and the process of development in general. Just high-level stuff.
@dennistanui7085
@dennistanui7085 Ай бұрын
Awesome, I've learned a great deal from this series and the plenary codebase 💯💯 Also, petition to bring back Take Tuesday
@mohammadkhosravi3285
@mohammadkhosravi3285 Ай бұрын
This series is amazing.
@lightbassed
@lightbassed Ай бұрын
3mins ago, new record🎉
@doudeman
@doudeman Ай бұрын
Thank you for showing testing. I caught an extra table insert when parsing the slide that was causing the window to draw incorrectly.
@FlaskTest
@FlaskTest Ай бұрын
awesome
@samuelborn9004
@samuelborn9004 Ай бұрын
You might want to change your background color. I am getting artifacts like crazy in the background of the terminal. A color, that KZbin can better compress might help?
@WarloardInPcGamer
@WarloardInPcGamer Ай бұрын
yes.
@papricasix
@papricasix Ай бұрын
No problems here. Maybe change quality settings in your side?
@flokkq7931
@flokkq7931 Ай бұрын
@@papricasix no problems either
@flokkq7931
@flokkq7931 Ай бұрын
teej this is so big
@Greenindragon
@Greenindragon Ай бұрын
For the life of me I cannot get the makefile to work. I get an error: E492: Not an editor command: PlenaryBustedDirectory tests/ { minimal_init = './scripts/minimal_init.vim' } Still fails when cloning the official repo from the description as well. Works fine if I run the command with Neovim open and I see the tests pass, just doesn't work from the makefile. Anyone experience this as well?
@josh_finnis
@josh_finnis Ай бұрын
I also see this error. It works locally when I remove --noplugin and -u scripts/minimal_init.vim from the make test command, seems our local setup isn't reading the Plenary plugin?
@josh_finnis
@josh_finnis Ай бұрын
I fixed this by copying the `plenary.nvim` folder lazy puts in /.local/share/nvim/lazy into the same directory my present.nvim folder was in.
@Greenindragon
@Greenindragon Ай бұрын
@@josh_finnis oh yeah that's definitely the problem, doing this worked. TJ must have a different lazy install path or he has a local copy of plenary in a different location for his development copy. Thanks!
@itsdolantime
@itsdolantime Ай бұрын
Were you able to resolve this? I am getting the same error here.
@Greenindragon
@Greenindragon Ай бұрын
@@itsdolantime Check the reply by john_finnis. The error is because the test command and minimal_vimrc relies on the plenary library being accessible at ../plenary.nvim (relative to the root directory of the present.nvim project), which is a non-standard location for it to be. Fix by either copying the lazy.nvim install in ~/.local/share/nvim/lazy, or by cloning the plenary repo directly (which is probably what TJ did as he has a local development copy of plenary on his machine).
@Daniel-the_one
@Daniel-the_one Ай бұрын
I could not understand why it was not working on my machine: E492: Not an editor command: PlenaryBustedDirectory tests/ { minimal_init = './scripts/minimal_init.vim' } In minimal_init.vim the second line reads : set rtp+=../plenary.nvim/ What this means , it will add plenary.nvim to rtp ( runtime ) on each ci execution ( which is --noplugin). So, you have to clone inside your lua/ folder ( the parent of present.nvim ) plenary.nvim so that it will be loaded and make PlenaryBustedDirectory command available.
@ib_pcpp
@ib_pcpp 7 күн бұрын
Hi, you can add (not replace) the following line to your minimal_init.vim: set rtp+=~/.local/share/nvim/lazy/plenary.nvim/
@ChristopherVanDerWesthuizen
@ChristopherVanDerWesthuizen 5 сағат бұрын
@@ib_pcpp Thank you! That worked for me.
@giorgos-4515
@giorgos-4515 Ай бұрын
what is the file explorer he is using??? just creating files like that is magic
@Greenindragon
@Greenindragon Ай бұрын
Oil.nvim, he made a video about it earlier this year: kzbin.info/www/bejne/aGKbgXmIqNuoaNE Also talked about it earlier this month in his Advent of Neovim series (which this video is technically a part of, I think): kzbin.info/www/bejne/Y6OUnoCdYt6JkKc
@giorgos-4515
@giorgos-4515 Ай бұрын
@Greenindragon thank you, just dabbled a bit in neo-tree might also try Oil soon
@jonathanjaviermonsalvegira1447
@jonathanjaviermonsalvegira1447 25 күн бұрын
I had this error: E5108: Error executing lua ...ocal/share/nvim/lazy/plenary.nvim/lua/plenary/busted.lua:268: .../config/plugins/present.nvim/tests/parse_slides_spec.lua: 2: module 'present' not found: so I executed :lua print(package.path) since I couldn't see present I did the following package.path = package.path .. ";" .. vim.fn.stdpath("config") .. "/lua/config/plugins/present.nvim/lua/?.lua" at the beginning of the parse_slides_spec.lua and now is working. The following question is why Tj is no experiencing this error. I wonder if the problem is that I'm using stow for config files including nvim HEEEELP!
@ib_pcpp
@ib_pcpp 7 күн бұрын
Hi, you can add (not replace) the following line to your minimal_init.vim: set rtp+=~/.local/share/nvim/lazy/plenary.nvim/
@jonathanjaviermonsalvegira1447
@jonathanjaviermonsalvegira1447 7 күн бұрын
@@ib_pcpp Thank you very much! It didn't work but you pointed out in the right direction. I put this line vim.opt.rtp:append("~/.config/nvim/lua/config/plugins/present.nvim") in one of the lua files that load when nvim starts and now the test are working
AI Made this Neovim config and I'm scared now
8:09
typecraft
Рет қаралды 57 М.
Who is More Stupid? #tiktok #sigmagirl #funny
0:27
CRAZY GREAPA
Рет қаралды 10 МЛН
БАБУШКА ШАРИТ #shorts
0:16
Паша Осадчий
Рет қаралды 4,1 МЛН
번쩍번쩍 거리는 입
0:32
승비니 Seungbini
Рет қаралды 182 МЛН
Bridging the Gap: Defining Ready for Dev | Figma
13:37
Figma
Рет қаралды 2,1 М.
Code Formatting made easy
9:47
TJ DeVries
Рет қаралды 24 М.
How to Develop Neovim Plugins in Lua: Step-by-Step Guide
29:44
Cloud-Native Corner
Рет қаралды 2,7 М.
State of Neovim 2024
1:21:59
neovimconf
Рет қаралды 15 М.
My New Favorite Terminal Just Dropped
24:42
Theo - t3․gg
Рет қаралды 140 М.
Treesitter Basics and Installation
13:50
TJ DeVries
Рет қаралды 28 М.
Where Lua Is Actually Used
9:25
Tortellini Soup
Рет қаралды 26 М.
Rolldown is here, can it save Vite?
20:08
Theo - t3․gg
Рет қаралды 56 М.
Who is More Stupid? #tiktok #sigmagirl #funny
0:27
CRAZY GREAPA
Рет қаралды 10 МЛН