تماشای این درس نیاز به اشتراک حرفه‌ای دارد.

Recompiling and cleaning plugins5:06

And we'll save this, and we'll run Packer compile to recompile our file here. And if I run Packer sync, let's see if this kicks in automatically. No, it's still showing up on the side there, so let's go ahead and close NeoVim and open it up again. And now let's run Packer sync. And now you see we get this nice floating window instead, which I prefer. Again, it's personal preference. Now one thing to note though is that if I go ahead and let's say I comment out a plugin. So let's come down to commentary, and I comment that out. I'll do a Packer compile, and then I'll run a Packer clean.

Customizing highlights via API6:07

And I'm going to run some commands to change the theme. So you can use vim.command and then use the highlight command just the way that I was demonstrating on the command line before. Or alternatively, NeoVim does have some APIs for this. So I'm going to say vim.api.nvim_set_hl, pass in a zero, I cannot remember why. And then we're going to customize the float border. And then we're going to pass in a little object here. I'm not sure why the indentation goes a bit funny in Lua files there. So let's set the foreground. And I'm going to set the foreground to be vim.api.nvim_get_hl_by_name.

Matching floating border colors6:40

So let's set the foreground. And I'm going to set the foreground to be vim.api.nvim_get_hl_by_name. And in this case, I want to get the color from the normal float window. And I'm going to pass true, which makes it return the colors in RGB. And I want the background. So what I'm trying to do here is change the floating border on those floating windows. So those double borders you saw, I want to change the color of those to be the same color as the normal windows floating background. And then I'm also going to copy this and do the same for the background. So if we, I better add it in that , over there, and we'll add a trailing 1 here for

Color Theme InstallationTheme Customization

دوست دارید گاهی خبرهای Laracasts را ایمیل کنیم؟