Neovim Can Write Your Code

Поділитися
Вставка
  • Опубліковано 1 чер 2024
  • There are many ways to jump on the AI wagon, but it doesn't mean you have to spend a fortune and it definitely doesn't mean you need to ditch Neovim!
    LINKS
    ▶ github.com/David-Kunz/gen.nvim
    ▶ @devonduty
    ▶ github.com/omerxx/dotfiles
    CONSIDER SUPPORTING THIS CHANNEL
    If you feel like you want to support my work, feel free to use the links below or use my affiliate links for the gear I'm using to record.
    Thanks!
    👕 Cool Swag! omerxx.myspreadshop.com/
    ☕ Buy me a coffee: www.buymeacoffee.com/omerxx
    🎷 60 day free Epidemic Music!: share.epidemicsound.com/w6zfxo
    MY FAVOURITE GEAR
    * If you enjoy my content, using the links below will help me with a small commission, so thank you!
    ⌨️ My keyboard is the wonderful HHKB: amzn.to/3HwJG60
    🔗 The HHKB is wired with a high quality coiled cable: amzn.to/3DCA87d
    ⌨️ Backup keyboard (for traveling mainly) - Nuphy Air60: amzn.to/3R3M7jz
    🖥️ My ultra wide 49" monitor: amzn.to/3JbVThC
    🎙️ Microphone - Shure MV7X: amzn.to/3kA7tZZ
    🦾 Boom Arm - amzn.to/3ZmQgln
    🎤 Audio Interface (for XLR microphones) - Focusrite Scarlett Solo: amzn.to/3Z3fBkQ
    🦾 Heavy Duty Monitor Arm: amzn.to/3kKp7tS
    🖱️ Mouse - MX Master 3: amzn.to/3DiZmaj
    📷 Camera - ZVE10: amzn.to/3I1jfVS
    🎥 Lens - Sigma 1.4 16mm: amzn.to/3BfFN15
    MY KEY LINKS
    📰 Join my newsletter! newsletter.omerxx.com
    🍿 Subscribe: www.youtube.com/@devopstoolbo...
    👕 Store: omerxx.myspreadshop.com/
    🌍 My website: omerxx.com
    🗞️ Dev & Ops tools Telegram channel: t.me/espressops
    🎙️ DevOps Topeaks Podcast: topeaks.buzzsprout.com
    ⏱ Timestamps
    00:00 - Intro
    01:00 - Ollama
    02:28 - Resource consumption
    03:22 - Modelfiles
    05:08 - Gen.Nvim
    08:37 - AI DevOps?
    09:40 - Extensions
    #productivity #tmux #UX #neovim #terminal #system #program #dev #devops #software #sysadmin #sysops #linux #terminal #console #cli #keyboard #commandline
  • Наука та технологія

КОМЕНТАРІ • 103

  • @devopstoolbox
    @devopstoolbox  6 місяців тому +1

    Join my newsletter!
    newsletter.omerxx.com

  • @devonduty
    @devonduty 6 місяців тому +11

    Thank you so much for featuring my plugin ❤

    • @devopstoolbox
      @devopstoolbox  6 місяців тому +3

      Thank YOU for creating it 🙏🏽

  • @typecraft_dev
    @typecraft_dev 6 місяців тому +27

    what AWESOME editing. These videos are looking amazing!

  • @themoderncoder
    @themoderncoder 6 місяців тому +8

    The way you present screencapture and the command line (like at 2:10) is really creative. Visualizing programming on video in an engaging way is so difficult, and I feel like you’re onto something with your style. Definitely inspiring as someone trying to do something similar with my channel, so I respect the extra editing effort that went into this. Awesome. Subscribed!

    • @devopstoolbox
      @devopstoolbox  6 місяців тому +2

      Thanks buddy! Checkout your channel looks amazing!
      Yep, trying to spice things up with the terminal and how it's presented. Got a lot of inspiration from Takuya at @devaslife check it out if you haven't yet :)

    • @themoderncoder
      @themoderncoder 6 місяців тому +1

      @@devopstoolbox Oh cool, I’ll have to check them out too. Thanks for the rec

    • @maurolimaok
      @maurolimaok 6 місяців тому +1

      I really suffer with channels with poor video quality.
      Good content and good video quality must walk together in order to deliver knowledge in a pleasure way.
      Thank you both for that.

    • @allsunday1485
      @allsunday1485 6 місяців тому +1

      I find it distracting tbh

    • @devopstoolbox
      @devopstoolbox  6 місяців тому

      @@allsunday1485 Got it a few times in the past and trying to play with things creatively while not making things worse for those who are easily distracted.
      Thanks for the feedback! I’ll take this into account in future videos

  • @jizhang2407
    @jizhang2407 6 місяців тому +3

    Aside from another awesome video produced by you, what an amazing view from your desk...!

  • @maurolimaok
    @maurolimaok 6 місяців тому

    Thanks for the channel.
    I'm on my first steps on Odin Project.
    This will be useful soon.

  • @YvanFlorian
    @YvanFlorian 6 місяців тому +3

    Just what I needed, stay fully in the terminal… thanks for sharing

    • @YvanFlorian
      @YvanFlorian 6 місяців тому

      Strange that there's no resource consumption issue on your side, somehow on my end it's chewing 7GB+ of Memory... wondering what im missing

  • @rolandrodriguez
    @rolandrodriguez 6 місяців тому +2

    This is gold! Can’t wait to try it out! 🎉❤

  • @celsopatiri2846
    @celsopatiri2846 6 місяців тому

    Awesome content, thank you!

  • @NicholasAngelidis1
    @NicholasAngelidis1 6 місяців тому

    great video and channel! subscribed!
    love the keyboard!
    given you are a coder and neovim user, any chance you can do a video on your layout?
    thinking of buying one but worried about rebuilding muscle memory ...

    • @devopstoolbox
      @devopstoolbox  6 місяців тому +1

      Yep! Working on it but I want the layout to be dialed in perfectly before I do and that takes time. Muscle memory rebuilding is an integral part of the process but I must say it’s not that long. I reached same typing speed after ~3 weeks. The layout keeps changing as I learn / find new stuff. So I’m guessing only if another 3 weeks go by without me changing anything I’ll know it’s ready for review 😅

    • @NicholasAngelidis1
      @NicholasAngelidis1 6 місяців тому

      @@devopstoolbox looking forward to it! although i ll probably buy one before that :P

    • @devopstoolbox
      @devopstoolbox  6 місяців тому +1

      @@NicholasAngelidis1 classic move Id make 😅

  • @veritasunum2253
    @veritasunum2253 6 місяців тому +1

    This is awesome. Thanks to the ollama devs and devops toolbox for shading light into it. Just one question, have you tried the starcoder model? it suppousedly outperformed other open code models last time I read about it but havent confirmed it

    • @devopstoolbox
      @devopstoolbox  6 місяців тому

      I did not! But now that you mention it I'll give it a go

  • @hikaru_e
    @hikaru_e 6 місяців тому

    Loved this ! Also why is your keyboard missing some keys xd ?

    • @devopstoolbox
      @devopstoolbox  6 місяців тому +1

      Thanks! Haha still playing around with getting used to the moon lander. It feels to me it has too many keys in a way that sometime is hard for me to understand "where I'm at" just by touching it. I'm used to knowing where the boundaries are when I reach out to the shift key for example or g on the other end. When shift is just another small key and there's more underneath it it's hard for me to find my way around without looking and I couldn't get used to it so I deicded to try and run with out it. Besides it doesn't make 100% sense to me to reach all the way down there so I removed it altogether :)

    • @hikaru_e
      @hikaru_e 6 місяців тому

      @@devopstoolbox Ahh I see it now, also that view look soo good to relax your eyes after long hours of sitting, I really loved it !

  • @jacekkurlit8403
    @jacekkurlit8403 6 місяців тому

    This is so cool, thank you!

  • @garciajero
    @garciajero 6 місяців тому +8

    i think ollama has been written by ex-docker employees also!

    • @devopstoolbox
      @devopstoolbox  6 місяців тому +2

      Honestly the number of amazing projects built by ex docker people is astounding.

    • @garciajero
      @garciajero 6 місяців тому

      @@devopstoolbox on emacs there's something called ellama very similar to gen , same idea , altho this is amazing and i can see a bit of a future , it doesn't stick you know i don't see myself using it i don't know why , feels like faster to go and google some example or something like that

  • @StiwieMayday
    @StiwieMayday 6 місяців тому

    Niceeee you got a moonlander!! Best piece of gear EVER

    • @devopstoolbox
      @devopstoolbox  6 місяців тому

      Yes! Replaced all the switches and still need to pad the inside so the typing won’t be as “metallic” but it’s amazing

    • @StiwieMayday
      @StiwieMayday 6 місяців тому

      @@devopstoolbox I got the kalith deep sea blues and they are **chefs_kiss

  • @elatedbento
    @elatedbento 6 місяців тому

    Great, great editing. Please share the color theme you're using in Neovim. Thanks!

    • @devopstoolbox
      @devopstoolbox  6 місяців тому

      Of course! Cattpuccin!

    • @elatedbento
      @elatedbento 6 місяців тому

      ​@@devopstoolbox ... And your split keyboard exact model ❤❤❤

    • @devopstoolbox
      @devopstoolbox  6 місяців тому

      @@elatedbento ZSH Moonlander!

  • @4_millimeter_defeater358
    @4_millimeter_defeater358 6 місяців тому

    hey, super cool video. could you tell me what nvim plugin you used to achieve that sleek terminal interface from neovim?

    • @devopstoolbox
      @devopstoolbox  6 місяців тому

      Thanks! Here it is
      github.com/numToStr/FTerm.nvim

  • @MIO9_sh
    @MIO9_sh 6 місяців тому +1

    The resources consumed by ollama is not trackable with procs (or any ps tools like htop btop etc) because the model is on the GPU whenever you use it. You will need to use the specific tool for your GPU in order to know how much resource it's eating, nvidia-smi for nvidia cards, and radeontop for AMD cards

    • @devopstoolbox
      @devopstoolbox  6 місяців тому

      Yes!! Thank you! I was baffled for a while and was definitely waiting for this comment !

  • @SumitPatel-nn7lx
    @SumitPatel-nn7lx 6 місяців тому +1

    Hey, as you are DevOps Engineer you can make an video on "Good practices for DevOps Engineers" or any tips and tricks which can make things easier for them. *Like this one.

    • @devopstoolbox
      @devopstoolbox  6 місяців тому

      This is such a broad range to cover that I try to focus on these in my blog + newsletter + podcast, you can check them all! That said, I will try to incorporate more specific videos.
      omerxx.com
      topeaks.buzzsprout.com

  • @kubectlgetpo
    @kubectlgetpo Місяць тому

    Ollama literally uses docker. They are docker images, that's why it feels like docker 😊

  • @lucerocj
    @lucerocj 5 місяців тому +1

    Would it be possible to to expand on how to use this with local files as a callback for keeping the model learning?

    • @devopstoolbox
      @devopstoolbox  5 місяців тому

      IIUC this would require the model to keep running in the background, i.e. the container lives throughout. This means you'd either have to snapshot it when restarting /periodically / use some other system to make sure the context is chaced.
      That said, you may want to check with gen.nvim's authos / ollama docs to make sure.

  • @SethMesser
    @SethMesser 6 місяців тому +1

    which wrist rests are you usign with your moonlander?

    • @devopstoolbox
      @devopstoolbox  6 місяців тому +1

      It comes with wrist rests that do a pretty good job. Used to have a wooden one for the HHKB that felt softer but no complaints

    • @SethMesser
      @SethMesser 6 місяців тому

      @@devopstoolbox thanks Omar and thanks for the awesome videos!

  • @billbennings8990
    @billbennings8990 6 місяців тому +1

    Great video all round, however, I had a slight issue with getting mistral to work... For some reason when I try to use the :Gen command, after entering a prompt (if applicable) I am presented with a blank box that does nothing. I have no idea what this means?

    • @devopstoolbox
      @devopstoolbox  6 місяців тому

      Hmmm try to debug: if you run the model through the CLI, can you get an answer from mistral? If you can’t, see if the mode is running or there’s a local issue.
      As for gen - check the config and see what mode it’s running

    • @billbennings8990
      @billbennings8990 6 місяців тому +1

      ​@@devopstoolbox I can run the model fine in the CLI, no problems there, I'll check the config for the mode now.

    • @billbennings8990
      @billbennings8990 6 місяців тому

      @@devopstoolbox Update: Even with specifying mistral:instruct in the gen config, it still fails to work correctly. Very strange.

    • @devopstoolbox
      @devopstoolbox  6 місяців тому

      @@billbennings8990 do other models work okay? If you switch to codellama for example does it work?

    • @billbennings8990
      @billbennings8990 6 місяців тому +1

      I'm installing it now, good idea.

  • @007arek
    @007arek 6 місяців тому

    There is a new project for nvim and ollama ogpt.nvim (fork of the chatgpt.nvim) with more advanced configuration and predefined roles than gen.nvim.
    Unfortunately, I have found a few bugs in it.

  • @ascourter
    @ascourter 2 місяці тому +1

    So what do you prefer now? Codeium, Copilot, or local llama?

    • @devopstoolbox
      @devopstoolbox  2 місяці тому +1

      Codeium for everyday code completion, GPT when I’m writing text (blogs newsletters etc)

  • @kbolourchi
    @kbolourchi 6 місяців тому

    Is it possible to share your nvim config setup, I really like how your setup? Thanks :)

    • @devopstoolbox
      @devopstoolbox  6 місяців тому

      Of course! Always open at dotfiles.omerxx.com
      Might not have the Ollama config yet as I haven't finalized it but if this is what you're looking for I'll expedite things and push. LMK!

    • @kbolourchi
      @kbolourchi 6 місяців тому

      @@devopstoolbox Amazing, thank you very much. I am learning NVIM and entirely new so will have a play around with your config :) Appreciate it. Subbed as this is very useful content!

  • @mrgdevops
    @mrgdevops 6 місяців тому +3

    how is the moonlander?

    • @devopstoolbox
      @devopstoolbox  6 місяців тому +1

      The moon lander is amazing! I must say the HHKB was a superior typing experience but nothing beats a good split kb with thumb clusters 🤩

  • @niksingh710
    @niksingh710 6 місяців тому

    man the keyboard view is sick.........

    • @niksingh710
      @niksingh710 6 місяців тому +1

      give me keyboard link ....

    • @devopstoolbox
      @devopstoolbox  6 місяців тому

      ZSH Moonlander!

    • @devopstoolbox
      @devopstoolbox  6 місяців тому

      The moon lander is amazing! I must say the HHKB was a superior typing experience but nothing beats a good split kb with thumb clusters 🤩

    • @niksingh710
      @niksingh710 6 місяців тому +1

      @@devopstoolbox I gues su meant ZSA 😂 .......zsh is overtaking

    • @niksingh710
      @niksingh710 6 місяців тому

      @@devopstoolbox yeah seems pretty awesome..... Gonna check it out soon....

  • @mahaliasmah9041
    @mahaliasmah9041 6 місяців тому +1

    Can you share your moonlander keyboard layout?

    • @devopstoolbox
      @devopstoolbox  6 місяців тому

      Planning to! It’s very much a mess rn so I’ll fix it up and share. You may have seen that I’m still playing with removing keys altogether and checking how it works

  • @Danielo515
    @Danielo515 6 місяців тому

    Oh, so the moonlander was at the end. Happy for your wrists. Now get into the rabbit hole of one shot layers, sticky modifiers and combos for maximum procrastination😄

  • @avi7278
    @avi7278 6 місяців тому +1

    Bro said he wants to bump a minor 😮😅

    • @devopstoolbox
      @devopstoolbox  6 місяців тому

      Haha finally! The one who noticed!

  • @x86sapien
    @x86sapien 6 місяців тому +1

    Keyboard link doesn't match the one in the video!!

    • @devopstoolbox
      @devopstoolbox  6 місяців тому +1

      You’re right sir!! HHKB is now my secondary kb. The ZSA moonlander takes first place. ATM it only works in pre order directly from the manufacturer but I will put a link there anyway. Thanks!

    • @x86sapien
      @x86sapien 6 місяців тому +1

      Add the link in the next video
      @@devopstoolbox

    • @devopstoolbox
      @devopstoolbox  6 місяців тому

      @@x86sapien will do, here it is: www.zsa.io/moonlander/

  • @caedencode
    @caedencode 6 місяців тому

    noice

  • @pushyoch.8252
    @pushyoch.8252 10 днів тому

    AI tools suck without a front-end simply because terminal cannot format markdown.
    Sure this might come off as a skill issue, but I want to easily distinguish between explanation and code examples.

    • @devopstoolbox
      @devopstoolbox  10 днів тому

      Firstly, there are great options, such as github.com/charmbracelet/glow
      But regardless, you can design the prompt to provide the output structure relevant. Especially if coding and you need either autocompletion / example with comments instead of MD etc

  • @richardbennett4365
    @richardbennett4365 Місяць тому

    He should be able to rest his fingers and wrists by speaking words to the computer instead of typing on keyboards so much. He will save a lot of time, too.

  • @gorumgamer1854
    @gorumgamer1854 6 місяців тому

    first

  • @barkovurur3043
    @barkovurur3043 4 місяці тому

    11 minute video for a 30 seconds of content, yikes. and then doesn't even explain anything? dafugg. very proud of his keyboard, i guess. weird video

  • @vanvothe4817
    @vanvothe4817 6 місяців тому

    noice