Тёмный

The Most Requested Neovim Config 

Andrew Courter
Подписаться 7 тыс.
Просмотров 34 тыс.
50% 1

In this video I go over the MOST requested Neovim configuration I get asked about so you can have a Noice UI and great autocomplete on the command line.
Companion Article: / the-most-requested-neo...
Neovim config: github.com/exosyphon/nvim
Noice: github.com/folke/noice.nvim
cmp-cmdline: github.com/hrsh7th/cmp-cmdline
Join the channel to get access to perks:
www.youtube.com/@ascourter/join
Twitter: / exosyphon
Website: andrewcourter.com
Twitch: / exosyphon
Gear:
Mic: amzn.to/40GUGFg
Mic Interface: amzn.to/3YGxaGE
Mic preamp: amzn.to/3XtBXtY
Webcam: amzn.to/3OEOZRU
Boom Arm: amzn.to/3qLr0GE
Vissles (VS II switches): vissles.com/?ref=69zn8aei20 - Coupon Code for $5 off: ANDREWCOURTER
IQUNIX F97 (TTC ACE switches): iqunix.store/collections/f97-...
🎵 Music
Music: Dreams - Bensound
www.bensound.com
Support by RFM - NCM: bit.ly/2xGHypM
⏰ Timestamps
0:00 Intro
0:44 Noice.nvim
1:36 UI features
1:46 Dismiss messages keymap
2:03 Virtual Text
2:22 My Favorite thing about Noice
2:32 Searching messages
3:18 Command line autocompletion
4:27 Outro
#neovim #coding #programming

Наука

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

 

30 июн 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 71   
@ascourter
@ascourter 5 месяцев назад
What are your favorite plugins in Neovim?
@tareef_arz
@tareef_arz 22 дня назад
boobs.nvim
@utvikler-no
@utvikler-no 5 месяцев назад
This is just perfect!! ❤ thanks mister!
@Redyf
@Redyf 4 месяца назад
Thanks to this video I learned how to enable autocomplete in cmdline, it was exactly what I was looking for. Thanks :)
@sachinchaudhary1310
@sachinchaudhary1310 16 дней назад
nix ganggggggggg how do u use neovim on nix ?
@radomirmijovic2605
@radomirmijovic2605 4 месяца назад
Great video thanks man, I was having difficulties setting up cmp with lazy
@7XStriderX7
@7XStriderX7 3 месяца назад
Amazing content!
@ascourter
@ascourter 3 месяца назад
Thank you!!
@Redyf
@Redyf 5 месяцев назад
Great video
@ascourter
@ascourter 5 месяцев назад
Thank you!
@0x72F
@0x72F 5 месяцев назад
great video! how does yours trigger the popup menu just by start typing @4:14? i have both cmp-path and cmp-buffer but it doesn't menu doesn't get trigger without pressing Tab
@ascourter
@ascourter 5 месяцев назад
Thanks! Did you setup github.com/hrsh7th/cmp-cmdline? If that doesn't resolve it then check out my config under lsp.lua, might be a setting in cmp or your LSP config.
@thetruth2488
@thetruth2488 5 месяцев назад
Hey man I really appreciate your work! Any chance we might get a video on setting up Neovim for Java development? Setting up the Java lsp seems to be pretty difficult. Cheers!
@ascourter
@ascourter 5 месяцев назад
Thank you! I will prioritize that next. Thanks for asking, it has been on my list for quite some time.
@thetruth2488
@thetruth2488 5 месяцев назад
@@ascourter Your are doing gods work, thank you!
@yuxiang4218
@yuxiang4218 2 месяца назад
great video
@ascourter
@ascourter 2 месяца назад
Thanks!
@TownspersonB
@TownspersonB 4 месяца назад
Do you know if there's a way to have the virtual text at 2:10 be dismissed when the cursor is moved or you go into insert mode or something? The only way I know how to get rid of it right now is to open up a new search and then exit the search, and that gets annoying imo.
@ascourter
@ascourter 4 месяца назад
Good question. I only know the way you described. I'll dig into it and see but you might be able to setup an autocommand or keymap.
@shreyashkhairkar
@shreyashkhairkar 5 месяцев назад
This is great. Could we have a tutorial on how to build plugins?
@ascourter
@ascourter 5 месяцев назад
Haha that's on my list. I went through creating a Telescope extension to start with something a little smaller than a plugin (ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-ZCkG47xGOl4.html). Still need to learn a bit more to talk about creating a plugin but it's in the works!
@richardhernandez8803
@richardhernandez8803 11 дней назад
You mentioned noice centering it and avoid a crick in your neck. Have you tried setting scrolloff = 999 It keeps the cursor centered in the page
@ascourter
@ascourter 11 дней назад
I don't believe I've tried that yet. Thanks for sharing!
@mokied
@mokied 2 месяца назад
Hey, how can you map down arrow to be mapped to the same command as Tab when the autocomplete pop up menu appears in the command line?
@ascourter
@ascourter 2 месяца назад
I believe this should work out of the box with cmp-cmdline but if not you can explicitly set the Down and Up mapping under mappings. Check out this post for an example: github.com/hrsh7th/nvim-cmp/discussions/847#discussioncomment-8901130
@mokied
@mokied 2 месяца назад
@@ascourter Cool, thanks. Seem like a hella-complex solution but it worked 💪🏻
@mokied
@mokied 2 месяца назад
@@ascourter I guess the better solution is to just get used to the Ctrl+p/n keybindings
@ravipratapmishra7013
@ravipratapmishra7013 Месяц назад
My issue regarding noice is, sometimes I want to dismiss the messages but I want to use escape as my key binding now to use escape I want to know when noice is printing some message on the screen so that only in that condition pressing the escape key will dismis the message otherwise it should work as usual, But i don't know how to check that noice is showing message on screen currently.
@ascourter
@ascourter Месяц назад
Overloading esc like that seems a bit tricky. What about using leader + Esc? You could then use the dismiss mapping I showed in the video.
@ravipratapmishra7013
@ravipratapmishra7013 Месяц назад
@@ascourter i tried this one once, i think i should give it more time to embrace it.
@utvikler-no
@utvikler-no 5 месяцев назад
How do you get the command line in the middle of the screen. Mine is at the top..
@anakinsonone
@anakinsonone 5 месяцев назад
did you add the suggested setup to your plugin config?
@utvikler-no
@utvikler-no 5 месяцев назад
@@anakinsonone as far as I know all of the plugins I believe relates to noice
@ascourter
@ascourter 5 месяцев назад
@@utvikler-no check out this post, you should be able to update the config for Noice to move the position. www.reddit.com/r/neovim/comments/10j82ot/q_noicenvim_how_to_change_the_position_of_the/
@xiLike2Doitx
@xiLike2Doitx 2 месяца назад
Does cmdline allow for execution of external binaries? Let’s say simple ‘git add .’
@ascourter
@ascourter 2 месяца назад
It does! Start with ! and then the command
@mrAjor
@mrAjor Месяц назад
For git use the plugin fugitive by tpope
@jedediah-fanuel
@jedediah-fanuel 4 месяца назад
@banchanbet4524
@banchanbet4524 4 дня назад
do you know how do you get the string searching at 2:08
@ascourter
@ascourter 3 дня назад
Do you mean how do you get the "1/3" text or the autocompletion or something else?
@sebastianalfaro1887
@sebastianalfaro1887 2 месяца назад
How do you get that Search string pop up??
@ascourter
@ascourter 2 месяца назад
Could you give me a timestamp for where in the video you see that?
@sebastianalfaro1887
@sebastianalfaro1887 2 месяца назад
@@ascourter yup, sorry missed that, it's 2:09
@ascourter
@ascourter 2 месяца назад
@@sebastianalfaro1887 No worries. So the command line popup in the middle of the screen? That would be from Noice.nvim
@sebastianalfaro1887
@sebastianalfaro1887 2 месяца назад
@@ascourter Yeah, that one, not sure why in my set up when i hit "/" character, the popup isn't shown but the traditional command bar at the bottom, i'm using lazyvim btw
@ascourter
@ascourter 2 месяца назад
@@sebastianalfaro1887 hmmm weird. If you hit : the pop up shows up?
@Zwk-kb9yc
@Zwk-kb9yc 5 месяцев назад
unmap default keybindings would be nice
@ascourter
@ascourter 5 месяцев назад
Sorry, not sure what you mean. Unmapping Noice default keybindings?
@Zwk-kb9yc
@Zwk-kb9yc 4 месяца назад
@@ascourter There are o lot of videos with keymappings but not a lot show how to unmap existing keymappings they only show keymappings which aren't used already from vim (default mappings)...
@ascourter
@ascourter 4 месяца назад
@@Zwk-kb9yc ok that makes sense. I'll add that to my list! Thanks for clarifying.
@lel7531
@lel7531 5 месяцев назад
Most requested by who ?
@ascourter
@ascourter 5 месяцев назад
Mostly viewers of the channel but honestly just about anyone I work with in Neovim these days.
@Redyf
@Redyf 5 месяцев назад
Me
@natescode
@natescode 5 месяцев назад
*whom
@utvikler-no
@utvikler-no 5 месяцев назад
Me..
@caeduob
@caeduob 5 месяцев назад
Me
@thisbridgehascables
@thisbridgehascables 4 месяца назад
How about a video showing you installing the whole setup.. love videos that are meaningless.. look what my terminal looks like..
@ascourter
@ascourter 4 месяца назад
This video was intended to only show a small section of my setup. I do intend to run through my configuration in its entirety after moving from Vim to Neovim.
@sumit_12393
@sumit_12393 4 месяца назад
vim.keymap.set({"i"}, "", function() ls.expand() end, {silent = true}) vim.keymap.set({"i", "s"}, "", function() ls.jump( 1) end, {silent = true}) vim.keymap.set({"i", "s"}, "", function() ls.jump(-1) end, {silent = true}) vim.keymap.set({"i", "s"}, "", function() if ls.choice_active() then ls.change_choice(1) end end, {silent = true}) any idea what does this do in LuaSnip?
@ascourter
@ascourter 4 месяца назад
These are all keymaps for luasnip. All of them are for insert mode and when a snippet is chosen and you want to jump to different locations in the snippet. Hope that helps!
@iwankiddies9274
@iwankiddies9274 4 месяца назад
can you add cssls or any plugin "css.lint.unknownAtRules": "warnig" to "ignore" in another of your video it need for fixing react tailwindcss project
@ascourter
@ascourter 4 месяца назад
I'll add this to my list. Thanks for the request!
@iwankiddies9274
@iwankiddies9274 4 месяца назад
@@ascourter love to see your content
@iwankiddies9274
@iwankiddies9274 4 месяца назад
I solved that problem with just some arguments in cssls
Далее
Setup Neovim for Kotlin Development
11:55
Просмотров 6 тыс.
Search and Replace with nvim-spectre
0:55
Supercharge Your Python Code with Ruff
2:05
Is Hop.nvim better than Flash.nvim?
16:04
Просмотров 4,2 тыс.
Which is Better Flash.nvim OR Leap.nvim?
11:35
Просмотров 8 тыс.
Become A Neovim Kangaroo
6:54
Просмотров 55 тыс.
This Zsh config is perhaps my favorite one yet.
17:24
Просмотров 150 тыс.