My Entire Neovim Setup From Scratch After 8 Years

Поделиться
HTML-код
  • Опубликовано: 7 ноя 2024

Комментарии • 93

  • @devopstoolbox
    @devopstoolbox  4 месяца назад +4

    Join 2000+ subscribers getting one dev/sec/ops tip every Friday: signup.omerxx.com

    • @TheGreatThimble
      @TheGreatThimble 4 месяца назад

      Hey @Devopstoplbox, can I pair your LSP section with Primeagean's 0-LSP set up as his LSP section is out of date?

    • @devopstoolbox
      @devopstoolbox  4 месяца назад +1

      @@TheGreatThimble I'm not 100% sure bc I didn't use his, but this gives me an idea to make my own updated version of 0-lsp video including the configuration bit... maybe someone else out there would like to see this

    • @TheGreatThimble
      @TheGreatThimble 4 месяца назад +1

      @@devopstoolbox Thank you. I would love to see it

  • @typecraft_dev
    @typecraft_dev 5 месяцев назад +71

    this is a GREAT config!

  • @jonathanjohnston9272
    @jonathanjohnston9272 4 месяца назад +5

    Nice video! Thanks! I appreciate the chapter marks. Long-time (1996) Vim user, but still a nvim newbie. I'll want to checkout some of those plugins.
    OTOH, I don't appreciate the sentiment that _real_ Vim usera don't use tabs. I've been using them since Vim added them. They make for handy workspaces, somewhat like workspaces in i3-wm (Linux)

    • @devopstoolbox
      @devopstoolbox  4 месяца назад +1

      Yep, take these stances with a grain of salt :)
      If it's a feature there's no "real users do X" .. it was my way of letting new neo/vim users to learn about buffer managment and how they differ from what people normally know about them coming from traditional IDEs

  • @Markadown
    @Markadown 5 месяцев назад +4

    I always love seeing people's setup. Great video.

  • @bobby9568
    @bobby9568 4 месяца назад +1

    Amazing! We're waiting for the usage from scratch video :)

  • @assafdori-j8h
    @assafdori-j8h 5 месяцев назад +1

    What a beast of config! Thank you for sharing with us.

  • @adibhanna
    @adibhanna 5 месяцев назад +5

    amazing video! love your setup!

    • @devopstoolbox
      @devopstoolbox  5 месяцев назад +1

      Some day I’ll get to your level of aesthetics 😉

  • @Mortonbel
    @Mortonbel 5 месяцев назад +1

    Great config, thank you!

  • @Lusit2306
    @Lusit2306 5 месяцев назад +8

    Very cool config. I've heavily followed your repo to learn neovim.
    One thing i find that it misses is plugins lazy loading.
    At one point my config was too heavy and took like 200ms to open neovim which is noticeable and was annoying. That's when i fell in lazy loading rabbit hole.
    One exemple with harpoon, i've lazy loaded on Keys event since it's not mandatory on startup.
    Now my conf takes 60ms to load.

    • @devopstoolbox
      @devopstoolbox  5 месяцев назад +2

      You’re 100% right. It’s an optimization I’ve delayed for too long. Will happen soon!

    • @Lusit2306
      @Lusit2306 5 месяцев назад +2

      @@devopstoolbox can't wait for the optimization video !

  • @IainSimmons
    @IainSimmons 5 месяцев назад +2

    Great video, I'll have to steal some of those keymaps!
    On that topic, is there a particular reason you use the older vim.api.nvim_set_keymap vs the newer vim.keymap.set in a bunch of places?

    • @devopstoolbox
      @devopstoolbox  5 месяцев назад +2

      Laziness mainly ;)
      I focused on moving to lua config files and there are some leftovers. Since I rarely ever change them I never bothered.
      You’re right though 😅

  • @fixer8173
    @fixer8173 5 месяцев назад +1

    Great stuff here, love your content

  • @xalium
    @xalium 5 месяцев назад +5

    I think new version of neovim has comment fn as a native feature. gcc works out of box. Unless there’s any other reason to use that plugin?

    • @IainSimmons
      @IainSimmons 5 месяцев назад +2

      Yes, in Neovim 0.10.0 native commenting was added. It's based on mini.comment, which was also Inspired by a few of the other main ones.
      Also I think the keymaps to go to the previous/next diagnostic with [d and ]d are now built-in to Neovim 0.10.0 too

  • @adriansrfr
    @adriansrfr 4 месяца назад

    Enjoying your work!

  • @rodelias9378
    @rodelias9378 4 месяца назад +2

    Cool video
    Thank you

  • @comeraczy2483
    @comeraczy2483 5 месяцев назад +2

    Thanks for sharing. At 8:00, did I hear it right? "It copies my code, as an image"? I understand that, if they need to, people can take their phone to turn the image back into an usable form, but why would you ever share code as an image?

    • @devopstoolbox
      @devopstoolbox  5 месяцев назад +1

      Yes exactly. My main 2 use cases :
      1. As examples shared on written blogposts / news letters
      2. Bits of code shared with coworkers over slack / slides to cover software / new feature or discuss a concept

  • @zutt3567
    @zutt3567 5 месяцев назад +4

    hey what's that ltree command you used to show the folders in such a nice way? im on ubuntu and cant seem to download it using snap or apt. and how do you get those autocompletes to come up for your commands? such as when you type a part of a command, the rest of it comes up with a lower opacity and you can press tab to autocomplete it

    • @devopstoolbox
      @devopstoolbox  5 месяцев назад +3

      So “lt” is a mapping I have for eza with the tree flag (see line 100: github.com/omerxx/dotfiles/blob/master/zshrc/.zshrc)
      ltree is the same as lt but without “-long” it’s a temporary mapping I created for the video :)

    • @zutt3567
      @zutt3567 5 месяцев назад +2

      @@devopstoolbox ah I see, thanks. I'll check it out. could you explain the auto completes in the terminal if that's fine with you?

    • @devopstoolbox
      @devopstoolbox  5 месяцев назад +1

      @@zutt3567 oh yeah - this is zsh autosuggestions - github.com/zsh-users/zsh-autosuggestions
      Also on my dotfiles (zshrc line 12)

    • @zutt3567
      @zutt3567 5 месяцев назад +1

      @@devopstoolbox I see. Thanks! great video btw

    • @John-Dennehy
      @John-Dennehy 4 месяца назад +1

      Just paused the video and spent an hour looking for the same thing, before thinking to ask here. Annoyingly I already had eza installed but just didn't realise it could look this nice

  • @lordarturo117
    @lordarturo117 5 месяцев назад +2

    Do you still use Neorg? Or does Obsidian cover all your note-taking needs?

    • @devopstoolbox
      @devopstoolbox  5 месяцев назад +1

      Mainly obsidian. Kept using Neorg for a while for project specific stuff but I slowly forgot syntax and tricks so moved back to the comfort of markdown 😎

    • @lordarturo117
      @lordarturo117 5 месяцев назад +2

      @@devopstoolbox I was looking at switching the other way and really enjoyed your video about it 😎

    • @devopstoolbox
      @devopstoolbox  5 месяцев назад +1

      @@lordarturo117 :)

  • @itisciprian
    @itisciprian 5 месяцев назад +2

    i was wondering for sometimes what layout you use for the keyboard ?
    Colemak DH or Workman or something else? - Make a video about it

    • @devopstoolbox
      @devopstoolbox  5 месяцев назад +1

      Good old qwerty :)
      Never had RSI and while I’d love to take a stub at it at some point where ever I asked people told me it’s more about convenience rather than speed. And, it takes a huge effort to make the change so 🤷

  • @tihon4979
    @tihon4979 5 месяцев назад +1

    Awesome!!! 👍👍👍

  • @prethammuthappabs2241
    @prethammuthappabs2241 26 дней назад +1

    Just a quick question, how do i go/look into the source file of a line , for example in intellij if i hover over any thing like lets say Securityfilter and press ctrl + click it takes me to the class source file , how do i do the same in neovim for C files

    • @devopstoolbox
      @devopstoolbox  26 дней назад

      You'd want to use your LSP for that and then "go to definition" / other method.

  • @himanshuwiz
    @himanshuwiz 5 месяцев назад +4

    I tried neovim and setup all the configs and keybinding according also integrated the git with it but dont know why i feel more productiive on vs code

    • @devopstoolbox
      @devopstoolbox  5 месяцев назад +1

      Hmm my honest take: we’re not all the same. Some would love the idea of moving around quickly, get the hang of it and invest time in making it work (sometime too much time). On the other hand, others don’t want to go through a steep learning curve, and just wanna get things done with vscode. If vim motions are enough for you there’s nothing wrong with that 🤷‍♂️.
      One thing to note - it takes time to get used to! So if you feel you’ve “wasted” too much of it, change to a setup that works for you

  • @jamesbarrow
    @jamesbarrow Месяц назад

    Love it

  • @topcivilian
    @topcivilian 5 месяцев назад +2

    excellent video, my friend
    you have a new subscriber
    I would like to see more of these
    beginner videos, I have a fresh linux
    installation with vanilla neovim
    and want to make it as productive
    as your setup, however, all of these
    features are a bit overwhelming, lol,
    so I will need to rewatch this 😊

    • @devopstoolbox
      @devopstoolbox  5 месяцев назад

      I totally get it. This is part showing what Neovim can do, and part giving you space and direction to get started small and grow. Happy to hear it helps and I hope you'll enjoy the next ones!

  • @Zippythrone
    @Zippythrone 3 месяца назад +1

    Hey, I’m wondering how to show icon when you do the tree command to show hierarchy structure?

    • @devopstoolbox
      @devopstoolbox  3 месяца назад +1

      @@Zippythrone all my ls/ tree commands are just eza with different flags :)
      They’re also here if you want them - dotfiles.omerxx.com

  • @n0kodoko143
    @n0kodoko143 5 месяцев назад +1

  • @LGXerxes
    @LGXerxes 5 месяцев назад +2

    What do you use for tenting keyboard?

    • @devopstoolbox
      @devopstoolbox  5 месяцев назад +1

      I'm using ZSA's platform. BUT - it's quite pricey and while I really like it, there are great 3d print-able models on their website that you can get yourself for a faction of the price.
      That said, the platform is solid, super easy to setup, and I haven't moved it an inch since I got it (4 month ago)

    • @LGXerxes
      @LGXerxes 5 месяцев назад +2

      @@devopstoolbox
      I see, am currently looking for something like the ZSA's platform but for my glove80. But it might be a good excuse to buy a printer and diy something.

    • @devopstoolbox
      @devopstoolbox  5 месяцев назад +1

      @@LGXerxes How do you like glove80? I'm really curious, I love the moonlander, and I don't think I can give it up but the typing experience is not as good as I used to have with kb's like the HHKB for example

  • @alexandrufasoleac627
    @alexandrufasoleac627 5 месяцев назад +2

    Nice Video! Congrats.
    I tried to battle with LSP (vue 2 and 3) for some days now... getting frustrated :) is there anyone who has a configuration that works properly from LSP pov?

    • @devopstoolbox
      @devopstoolbox  5 месяцев назад +1

      Thanks! You mean specifically for js? Checkout “dreamofcode” or “devaslife” they may have some useful stuff for you

  • @WeAreSelfTaught
    @WeAreSelfTaught 3 месяца назад

    what terminal do you use and what is the config?

  • @tsukinoko_kun
    @tsukinoko_kun 5 месяцев назад +3

    Didn't talk about harpoon? 🤨

    • @devopstoolbox
      @devopstoolbox  5 месяцев назад +2

      Yeah, the main reason is, I find Harpoon a little funky. It used to be great, and then it started losing touch with my mappings. Even with V2 it feels like it's either not suited for my needs or just moves around in a way I don't get.
      It's still part of my workflow and I think I need to invest some time in figuring out whats going on.
      Can't review with honesty at the moment though.

    • @willernst
      @willernst 5 месяцев назад

      @@devopstoolboxit’s not something I’ve really incorporated heavily into my workflow, but I gave up on Harpoon and switched to Grapple with much better success.

  • @fraga3477
    @fraga3477 5 месяцев назад +2

    Could be installed in Windows? I'm learning C# and it's better to use, edit, create API's, etc... in windows.

    • @simonelungarella9000
      @simonelungarella9000 5 месяцев назад +1

      Yes, It's pretty easly installable on windows. I've started with kickstart as suggested in the video, if you follow the repo there are some raccomandation on windows installation.

    • @devopstoolbox
      @devopstoolbox  5 месяцев назад +1

      I don’t see why not. All of these should work on windows just as well!

  • @iyar220
    @iyar220 5 месяцев назад +2

    I love the config but it fails completely with jdtls and i just cannot fix it :( i have to use java a lot so it's a dealbreaker

    • @devopstoolbox
      @devopstoolbox  5 месяцев назад +1

      Oh man. I wish I could help...
      If you do find a way LMK and I'll make to sure to add it to the readme of my dotfiles

    • @iyar220
      @iyar220 5 месяцев назад +2

      @@devopstoolbox Thank you, I'll let you know. For now my broken solution is to have neovim load my former config if it's a .java file, and your config if it's any other file lol

    • @iyar220
      @iyar220 2 месяца назад

      2 month update, the breakage was caused by noice with some LSPS.
      It fixed itself completely when i moved from using a vm, to running arch on bare metal, like a lot of other weird issues I've had over the last few months

  • @kamalkamals
    @kamalkamals 5 месяцев назад +2

    why not using nvimtree ? because the files explorer display by default and there is no keymap to toggle, hide & diplay !!!

    • @devopstoolbox
      @devopstoolbox  5 месяцев назад +1

      You're right, but long ago, thanks to DAS (Destroy All Software), I learned that having a file explorer is detrimental to productivity. If you know your project, going through files should be done with a fuzzy searcher. This was in the pre-fzf era, and I believe he called it "leader-c". In an event, with a fuzzy searcher, it's +1/2 characters and you're there. Paired with good buffer management, and you're flying 300% faster between files than you would have with a visual tree.
      I get that its not everyone's first choice, but I've doing it for over a decade and only when I'm completely unfamiliar with a repo / files structure I'd pop the tree

    • @kamalkamals
      @kamalkamals 5 месяцев назад +1

      @@devopstoolbox yes agree it s depend to each user, but after test ur nvim configs from github, files explorer display by default so how can hide ?

    • @devopstoolbox
      @devopstoolbox  5 месяцев назад +1

      @@kamalkamals Not sure why it's on by default, but you have nvimtree toggle and hide commands from your nvim command

    • @kamalkamals
      @kamalkamals 5 месяцев назад +1

      @@devopstoolbox first plugin nvimtree is not on ur config so must to add with custom keymap set

  • @carloschon
    @carloschon 3 месяца назад +1

    What's the custom cmdline, telescope?

    • @giftcp82
      @giftcp82 2 месяца назад

      I also didn't here the name clearly and it's not on the list of plugins

    • @giftcp82
      @giftcp82 2 месяца назад +2

      Got it now. It's 'noice'

  • @ArturdeSousaRocha
    @ArturdeSousaRocha 9 дней назад +1

    Damn skill issues. Every time I try to migrate from Vim to Neovim I find myself overwhelmed by the setup tips. I only really use vim-go and about 20 lines of vimrc. I guess I could try something like that with Neovim.

    • @devopstoolbox
      @devopstoolbox  8 дней назад

      Why switch then? Or, why don't just switch to vanilla and keep it that way with your vimrc and have fun?

    • @ArturdeSousaRocha
      @ArturdeSousaRocha 8 дней назад

      @devopstoolbox Curiosity mostly. :) But you're right, since I enjoy simplicity, vanilla plus some basics might be a good idea.

  • @NikhilWankhade-l9z
    @NikhilWankhade-l9z 18 дней назад

    theme name please

    • @devopstoolbox
      @devopstoolbox  15 дней назад

      Cattpuccin, it's all in my dotfiles.omerxx.com

  • @perlance1337
    @perlance1337 4 месяца назад +2

    This is really good, however, sending code as image files should be a warcrime.

    • @devopstoolbox
      @devopstoolbox  4 месяца назад +2

      I find myself do it quite often to show examples - refer to a public source quote in a nicer more readable way

  • @abrarmasumabir3809
    @abrarmasumabir3809 5 месяцев назад +1

    if you are not using your HHKB then give it to me : )

    • @devopstoolbox
      @devopstoolbox  5 месяцев назад +1

      It has served me for so long and I invested so much in making it even better than what it was that I'm having hard time letting go... Maybe I'll do a give-away sometime :)

    • @abrarmasumabir3809
      @abrarmasumabir3809 5 месяцев назад +2

      ​@@devopstoolbox If you do, then please consider giving it to me. I am going to graduate from high school and probably will take cs as my major in college.

  • @ianmarteens
    @ianmarteens 5 месяцев назад +1

    I hate vim, neovim and even dev ops. I’m a real programmer: I deal with maths, algorithms and data structures. These thingies are a actual waste of time. It distract potentially useful people from doing useful things. I just refuse to follow the stupid fads.

    • @devopstoolbox
      @devopstoolbox  5 месяцев назад +3

      Ok! 👌

    • @loo_9
      @loo_9 5 месяцев назад +3

      I hate VS Code, JetBrains, and even web dev. I’m a real developer: I deal with data structures, algorithms and maths. These thingies are a waste of time. It distract potential useful people from doing useful things. I refuse to follow the stupid fads.

    • @ianmarteens
      @ianmarteens 5 месяцев назад +1

      @@loo_9 even parody requires some brains. A hard fact of life, I’m sorry.

    • @makesushi
      @makesushi 2 месяца назад

      Wow it must be nice being that awesome🤭