The Lazy Way in Neovim: From Packer to Lazy.nvim
Vložit
- čas přidán 20. 02. 2023
- twitter: / typecraft_dev
Github: github.com/cpow/cpow-dotfiles
Lets get Lazy. Lazy is an amazing package for neovim. It has auto-lazy-loading. auto installation of missing plugins, an amazing UI, and other awesome features!
I personally love it, and have not found any real flaws. Check out this amazing package with me and see what you think :) - Věda a technologie
No, thank you. Nerd!
😂
based GNU nano enjoyer
Yes, lazy is great, and I was also pretty amazed when I restart and everything was working without any error messages. I also really appreciate the option that enables the local plugins you're working on to be automatically loaded from your machine.
That's why I switched to lazy by the way, I'm not a nerd like you, I only changed my neovim config 18 times this month.
Sounds like you’re a nerd EXACTLY like me!
@@typecraft_dev NOT AT ALL but I don't have time to explain, just found a cool new CLI tool!
Packer also supports local plugins
Just made the switch from Packer to Lazy, didn't bother to see how easy it was! thank you for the tutorial!
awesome vid. ty for the overview & levity
You saved me so much reading. I think you are the greatest.
You’re the greatest
Pretty easy to do, thank you so much!
What you said during the intro is _so_ true.
😂
The first 25 seconds of this video perfectly sums up why i even looked for a video like this one. Lates be honest. We dont have a problem with changing nedlessly our config, we rather would have one without. Any I would really get some work done. Nobody wants that, i think
For me the biggest selling point is what's described in the "Structuring Your Plugins" section of the readme. I like the fact that you can have the spec for the plugins with more complicated configuration (for me pretty much all of them) in separate files and lazy will automatically discover and merge them.
Ah yes, that is very good as well. I didn't get to cover that in this video but I agree its a nice feature
Wow! Excellent video. I was troubleshooting a fonts / colorscheme issue while following along with your first video in this playlist using Packer, and ended up switching to Lazy as I thought the issue was Packer was unsupported and seemed to not be loading the packages.
I went through all the steps you did in this video - really wish I would have looked at the rest of the playlist first!
In the end, I don't think my issue was with Packer. I was using basic macos terminal with no nerd fonts. After switching to iTerm2 and installing a couple nerd fonts, everything looked like it should. I very much like Lazy.nvim and the interface though, nice find!
One thing I haven't yet figured out how to accomplish - on all your videos so far you have used ':source %' to reload so you can run PackerSync. The source for configs seems to be disabled in Lazy.nvim - is there a way to automatically load new packages after adding them to the modules without exiting and re-opening nvim?
Thank you, Nerd!
I finished this like, 2 days ago😂 saw lazy in a video and I just had to do it (and it has some nice things)
I'd love to see a video about Rust configuration using lazy!
Can you do a tutorial for dap ts? I guess many devs are just going to print instead of breakpoints
Sure!
Thanks for starting at the beginning (how to install etc) instead of starting in the middle
I don't use VIM/Neovim, vscode user but I like this new plugin lol 😂😂
😂
imagine using vscode
@@DalpakaNBA I hope to try neovim soon so I have only browser, and terminal opened for coding. If I can get the autocompletion, and other things to work for good UX. Don't want to use any framework like nvchad, lunarvim, they are good but I want to do it manually when I have time to explore.
Thanks!
1:34 how did you remove 'use' from all those lines at once?
I made a macro to delete use then I ran it 5 times or so
@@typecraft_dev Ooo thanks
google search and replace vim, i think it will save you a lot of time
You could also block select (ctrl v) and then select and delete all of them at once.
Fireship style ?
Has not been easy for me, I was using Christ@machine original-tutorials folder structure and for some reason Quiscope plugin config doesn't load. At this moment I'm trying with you folder structure.
Ok, you folder structure is cleaner, I love it. Now, I'm facing why Quickscope config stop working.
an easy way to put a config is this, in lazy call:
{
'unblevable/quick-scope' ,
init = function()
vim.cmd([[
" Trigger a highlight in the appropriate direction when pressing these keys:
let g:qs_highlight_on_keys = ['f', 'F', 't', 'T']
highlight QuickScopePrimary guifg='#00C7DF' gui=underline ctermfg=155 cterm=underline
highlight QuickScopeSecondary guifg='#afff5f' gui=underline ctermfg=81 cterm=underline
let g:qs_max_chars=150
]])
end
},
Can you do a video on neovim setup for java development. It will be very helpful for all java developers who wants to switch to neovim.
Just use IntelliJ with Ideavim plugin
step 1: learn kotlin and drop that horrible language
I guess it one way to load script. It better way to script differently to able to disable plugins which good for testing those plugins.
ty G
What is the theme of nvim?
Dracula!
how to create new file in nvim?
I use nvim tree. You can navigate to the dir you want and hit “a” to add a file
@@typecraft_dev thanks!
Just open a file in the usual way with :e and save the file
am-lazy-ng vim
Dotfiles?
Here you go! github.com/cpow/cpow-dotfiles
@@typecraft_dev Thanks so much. I see the config is still pre-lazy. I was wondering if you had come up with a more beautiful solution for the init.lua not listing all files one by one. :/
I am looking forward to that too
For me as a beginner Lazy is bundled with too many plugins that do not seem to be really required for lazy to run (40+ plugins). I'd rather opt-in than having to disable plugins manually. It makes it harder to customise when you don't know which plugin is causing what change. Some keymap changes don't even show up in the search but which-key has them. There is just too much blackbox for my taste.
However I love the lazy loading aspect and overall useful selection of plugins. Would be the cherry on top if the lazy UI would let you actually manage plugins and browse some repo / create config files per plugin and so on. I'm just spoiled like that.
I don't quite understand what you mean by "too many plugins", "keymap changes", and "black box" in the context of this video. Could be that you're referring to the LazyVim distribution? What's described here is just the Lazy package manager, not the LazyVim distro. I wrote my config from scratch using Lazy as the plugin manager, and it's a great experience.
Video about Neovim, deletes all the "use" manually instead of using visual block mode ಠ_ಠ
Jk thanks for the video.
🤣 I was self conscious about that
:%s/use\s/
endless replaying 3:54
Thanks for the video! Super easy to follow.
:%s/use //
Haha yeah I get lazy and use macros more. Don’t know why. But yes that would’ve been better!
sir.............
why did you just repeat a motion 50 times instead of %s/use/ /g ???????????????????
I used a macro and did something like `10@q` to format big chunks of it. could've been more succinct but hey, it wasnt that bad!!
@@typecraft_dev I JUST now learned about :norm
basically you can type out the motions, like a very long keymap, and it executes on each selected line.
I'm such a follower 😐
welcome, brother