The Most Requested Neovim Config

Sdílet
Vložit
  • čas přidán 29. 07. 2024
  • 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
  • Věda a technologie

Komentáře • 69

  • @ascourter
    @ascourter  Před 6 měsíci +3

    What are your favorite plugins in Neovim?

  • @utvikler-no
    @utvikler-no Před 6 měsíci +2

    This is just perfect!! ❤ thanks mister!

  • @Redyf
    @Redyf Před 5 měsíci +2

    Thanks to this video I learned how to enable autocomplete in cmdline, it was exactly what I was looking for. Thanks :)

  • @radomirmijovic2605
    @radomirmijovic2605 Před 5 měsíci

    Great video thanks man, I was having difficulties setting up cmp with lazy

  • @7XStriderX7
    @7XStriderX7 Před 4 měsíci

    Amazing content!

  • @Redyf
    @Redyf Před 6 měsíci

    Great video

  • @TownspersonB
    @TownspersonB Před 5 měsíci

    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  Před 5 měsíci +1

      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.

  • @yuxiang4218
    @yuxiang4218 Před 3 měsíci

    great video

  • @thetruth2488
    @thetruth2488 Před 6 měsíci +2

    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  Před 6 měsíci +1

      Thank you! I will prioritize that next. Thanks for asking, it has been on my list for quite some time.

    • @thetruth2488
      @thetruth2488 Před 6 měsíci

      @@ascourter Your are doing gods work, thank you!

  • @mokied
    @mokied Před 3 měsíci

    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  Před 3 měsíci

      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 Před 3 měsíci

      @@ascourter Cool, thanks. Seem like a hella-complex solution but it worked 💪🏻

    • @mokied
      @mokied Před 3 měsíci

      @@ascourter I guess the better solution is to just get used to the Ctrl+p/n keybindings

  • @banchanbet4524
    @banchanbet4524 Před měsícem

    do you know how do you get the string searching at 2:08

    • @ascourter
      @ascourter  Před měsícem

      Do you mean how do you get the "1/3" text or the autocompletion or something else?

  • @utvikler-no
    @utvikler-no Před 6 měsíci

    How do you get the command line in the middle of the screen. Mine is at the top..

    • @anakinsonone
      @anakinsonone Před 6 měsíci +1

      did you add the suggested setup to your plugin config?

    • @utvikler-no
      @utvikler-no Před 6 měsíci

      @@anakinsonone as far as I know all of the plugins I believe relates to noice

    • @ascourter
      @ascourter  Před 6 měsíci +1

      @@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/

  • @ravipratapmishra7013
    @ravipratapmishra7013 Před 2 měsíci

    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  Před 2 měsíci +1

      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 Před 2 měsíci

      @@ascourter i tried this one once, i think i should give it more time to embrace it.

  • @richardhernandez8803
    @richardhernandez8803 Před měsícem

    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  Před měsícem

      I don't believe I've tried that yet. Thanks for sharing!

  • @shreyashkhairkar
    @shreyashkhairkar Před 6 měsíci

    This is great. Could we have a tutorial on how to build plugins?

    • @ascourter
      @ascourter  Před 6 měsíci

      Haha that's on my list. I went through creating a Telescope extension to start with something a little smaller than a plugin (czcams.com/video/ZCkG47xGOl4/video.html). Still need to learn a bit more to talk about creating a plugin but it's in the works!

  • @xiLike2Doitx
    @xiLike2Doitx Před 3 měsíci

    Does cmdline allow for execution of external binaries? Let’s say simple ‘git add .’

    • @ascourter
      @ascourter  Před 3 měsíci

      It does! Start with ! and then the command

    • @mrAjor
      @mrAjor Před 2 měsíci

      For git use the plugin fugitive by tpope

  • @sebastianalfaro1887
    @sebastianalfaro1887 Před 3 měsíci

    How do you get that Search string pop up??

    • @ascourter
      @ascourter  Před 3 měsíci

      Could you give me a timestamp for where in the video you see that?

    • @sebastianalfaro1887
      @sebastianalfaro1887 Před 3 měsíci

      @@ascourter yup, sorry missed that, it's 2:09

    • @ascourter
      @ascourter  Před 3 měsíci +1

      @@sebastianalfaro1887 No worries. So the command line popup in the middle of the screen? That would be from Noice.nvim

    • @sebastianalfaro1887
      @sebastianalfaro1887 Před 3 měsíci

      @@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  Před 3 měsíci

      @@sebastianalfaro1887 hmmm weird. If you hit : the pop up shows up?

  • @jedediah-fanuel
    @jedediah-fanuel Před 5 měsíci

  • @Zwk-kb9yc
    @Zwk-kb9yc Před 6 měsíci

    unmap default keybindings would be nice

    • @ascourter
      @ascourter  Před 6 měsíci

      Sorry, not sure what you mean. Unmapping Noice default keybindings?

    • @Zwk-kb9yc
      @Zwk-kb9yc Před 5 měsíci

      @@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  Před 5 měsíci +1

      @@Zwk-kb9yc ok that makes sense. I'll add that to my list! Thanks for clarifying.

  • @lel7531
    @lel7531 Před 6 měsíci +21

    Most requested by who ?

    • @ascourter
      @ascourter  Před 6 měsíci +18

      Mostly viewers of the channel but honestly just about anyone I work with in Neovim these days.

    • @Redyf
      @Redyf Před 6 měsíci +7

      Me

    • @natescode
      @natescode Před 6 měsíci +13

      *whom

    • @utvikler-no
      @utvikler-no Před 6 měsíci +4

      Me..

    • @caeduob
      @caeduob Před 6 měsíci +3

      Me

  • @thisbridgehascables
    @thisbridgehascables Před 5 měsíci

    How about a video showing you installing the whole setup.. love videos that are meaningless.. look what my terminal looks like..

    • @ascourter
      @ascourter  Před 5 měsíci

      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 Před 5 měsíci

    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  Před 5 měsíci

      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 Před 5 měsíci

    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  Před 5 měsíci

      I'll add this to my list. Thanks for the request!

    • @iwankiddies9274
      @iwankiddies9274 Před 5 měsíci

      @@ascourter love to see your content

    • @iwankiddies9274
      @iwankiddies9274 Před 5 měsíci

      I solved that problem with just some arguments in cssls