My LunarVim Config | Using NeoVim as an IDE

Sdílet
Vložit
  • čas přidán 25. 06. 2024
  • Github repo with the LunarVim config in this video (branch "lunarvim"): github.com/IfCodingWereNatura...
    Timestamps:
    0:00 - intro
    0:53 - setup overview
    2:25 - installation and setup
    4:05 - config.lua
    4:40 - plugins.lua
    4:55 - copilot-cmp
    6:58 - plugins continued
    7:48 - todo-comments.nvim
    8:14 - persistence.nvim
    9:44 - vim-tmux-navigator
    10:59 - harpoon
    11:14 - hop.nvim
    12:44 - trevj
    14:17 - colorscheme.lua
    15:17 - dashboard.lua
    16:55 - banners.lua
    17:44 - options.lua
    18:44 - keymaps.lua
    22:40 - which-key.lua
    27:29 - lsp.lua
    32:30 - autocmds.lua
    32:55 - wrapping up
  • Věda a technologie

Komentáře • 47

  • @chrisatmachine
    @chrisatmachine Před rokem +23

    Thanks for making this video, great explanation and setup!

  • @rbereziuk
    @rbereziuk Před rokem +1

    Great video. Very clear and cool explanation, thanks
    Would be awesome to see using neovim with typescript stuff

  • @ShikaIE
    @ShikaIE Před rokem +2

    Love the chill vibe

  • @LeighBriody
    @LeighBriody Před rokem +3

    Great video , I am currently trying to work my way into using neovim. I currently use vs code and I am in the process of learning how to effortlessly touch type , then hoping to transition to split keyboard , and then learn vim , these videos are great keep them coming !

    • @ezequielpaulo5043
      @ezequielpaulo5043 Před rokem +1

      You dont need any of that to use nvim. Youll never learn nvim if you write in VSC.

  • @eviltables7235
    @eviltables7235 Před rokem

    super happy to have this video, thanks

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

    Awesome video, subscribed!

  • @Dedseq
    @Dedseq Před 4 měsíci

    love your set up and explanation. I just have not been able to load my plugins from different files like you have.

  • @ivansativ5450
    @ivansativ5450 Před rokem

    thanks for sharing! I'm still to lazy to brush over my config so I have it all jacked in a single file :)
    what's your git flow in neovim?
    This is my biggest pain point, and I constantly switch to vscode to resolve merge conflicts
    I use lazygit in neovim for all simple tasks, but for more complex things I tend to open vscode

    • @ifcodingwerenatural
      @ifcodingwerenatural  Před rokem

      I just use lazygit and it works pretty well for me. Can't say I have to deal with large merge conflicts very often, so it hasn't really been a pain point for me!

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

    Great video, Subscribed! Quick question: at 09:52, how did you split the horizontal terminal at the bottom into two? I saw the key mapping as CMD+\, but it's not in the repository and not in the default LunarVim config. I've set up tmux, but it splits the entire Vim session, not just the bottom terminal.

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

      That keybind is in my tmux config. It sounds like you have a keymap in your neovim config that splits your vim session that's bound to CMD+\ (and possibly overriding your tmux config?).
      Also, tmux struggles with CMD, so I cheat by using Ctrl+\ in my tmux config, then set an override in my terminal config (I'm using Wezterm) that maps CMD+\ to Ctrl+\. It's a little convoluted 😅.

  • @sunkye6035
    @sunkye6035 Před rokem

    i’m new to neovim and i really like how clean ur setup looks like. i just have a question. by what im getting from the video, your nvim configuration runs inside a docker container correct? so in order to use neovim u have to be connected to that docker container i suppose. but what if im working in a project where theres already a different docker environment, for example a company project with docker compose and so on, how do i still use that nvim config?

    • @ifcodingwerenatural
      @ifcodingwerenatural  Před rokem +1

      I just ran it in docker for this video so I could tweak the config without changing my actual config. During day to day usage, I don't run lunarvim/neovim inside docker.

    • @sunkye6035
      @sunkye6035 Před rokem

      @@ifcodingwerenatural thank you for explaining 🙏🏻

  • @raynescofield8178
    @raynescofield8178 Před rokem

    nice one

    • @raynescofield8178
      @raynescofield8178 Před rokem

      look forward to your another video regarding your LunarVim config.

  • @lian1238
    @lian1238 Před rokem

    I would love some of these things but I’m not ready to jump to lvim (I’m new to nvim, and just gotten used to my current set up). My question is can i still use some of what you use without installing lvim? And is there any risk of plugins for nvim not working for lvim?

    • @ifcodingwerenatural
      @ifcodingwerenatural  Před rokem +1

      When you install lvim, the config is completely separate from your regular config. So when I type "lvim", it loads my lvim config, but typing "nvim" uses my config under "~/.config/nvim".

    • @vaisakhkm783
      @vaisakhkm783 Před rokem +1

      lvim is isolated from regular nvim and nvimconfigs and plugins

  • @albdelgado
    @albdelgado Před 7 měsíci

    The pressing space (leader) and then shift C for the typescript stuff such as organize imports doesn't work anymore. Is there a fix?

  • @emmanuellmiqueletti7029

    thanks for sharing your config. but after install your config I can't delete delete line with 'dd' any thoughts or this was intended?

    • @ifcodingwerenatural
      @ifcodingwerenatural  Před rokem

      Definitely not intended haha. I use dd all the time. Genuinely have no idea what would be causing that. Maybe you figured it out by now, but you could try installing lunarvim with the default config and see if the problem persists, then start adding more plugins until it happens again.

  • @jesusidev
    @jesusidev Před rokem

    Thanks for sharing, learn a lot from this video. One thing I can’t figure out is when opening a JavaScript file I get an error message ‘Spawning language server with cmd: typescript-language-server failed. The language server is either not installed, missing from
    PATH, or not executable.’ Not sure if you can help?

    • @jesusidev
      @jesusidev Před rokem +2

      Found the fix had to do ‘npm install -g typescript-language-server’

  • @MirkoVukusic
    @MirkoVukusic Před rokem +1

    I like that desk in the background. 3d printer, soldering iron? Nice "office". Would like to have space for it

    • @ifcodingwerenatural
      @ifcodingwerenatural  Před rokem +1

      Thanks! I feel incredibly blessed to have this room. I just finished my basement last week and moved down here 😁. And yes, there's the 3D printer and a screw driver sitting next to an extension cord at jjjuuusssttt the right position to look like a soldering iron.

  • @livb4139
    @livb4139 Před rokem +1

    pls make video about debugging in lunarvim with dap

  • @jesusidev
    @jesusidev Před rokem

    In 28:57 I dont see the C +Typescript option and can't find it in your config. Am I missing something or can you link me to when you have that in your config? I already `npm i -g typescript typescript-language-server` and restarted ts server by :e! and :e but still don't see that option.

    • @ifcodingwerenatural
      @ifcodingwerenatural  Před rokem +1

      That functionality came from the "typescript" plugin (github.com/jose-elias-alvarez/typescript.nvim). And I just created my own keymaps to execute the commands added by the plugin. For example, I bound `:TypescriptOrganizeImports` to `Co` and `:TypescriptRemoveUnused` to `Cu`. I added the keymaps inside the `ftplugin` folder so they only work inside Typescript files, which you can see on the "lunarvim" branch of the repo under `lvim/ftplugin/typescript.lua`.

  • @nubsdre
    @nubsdre Před rokem +1

    Some characters are unavailable, they appear as empty rectangles, how do I fix that? Because I already have the FiraCode font downloaded but it still doesn't work

    • @ifcodingwerenatural
      @ifcodingwerenatural  Před rokem

      My best guess is either you don't have the Nerd Font version of FiraCode installed or it's an issue with your terminal.

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

    Is that a custom Ben Eater 8-bit computer I see next to your 3D printer?

  • @livb4139
    @livb4139 Před rokem

    Have you tried helix?

  • @takeiteasyeh
    @takeiteasyeh Před 7 měsíci +3

    I love how every *vim video is out of date after 6 months. This is not longer the config, the config and example now just send you to a webpage with configs, that guess what, don't work properly. Such a terrible experience

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

      Sad, but (mostly) true

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

      @@ifcodingwerenatural after excessive stubbornness I got it working awhile back. Do appreciate the video. Something memory leaks though, gotta restart the session every few hours

  • @Danielo515
    @Danielo515 Před rokem

    I really want to update LVim, but on every update they always fuck up some key functionality I use, so the idea just scares me completely

    • @ifcodingwerenatural
      @ifcodingwerenatural  Před rokem

      I run into issues when updated plugins every now and then, but lunvarim itself has been pretty stable for me.

  • @annakarolinafranz5946

    could you describe these shortcuts in the comment

  • @danielstellmon5330
    @danielstellmon5330 Před rokem +1

    I understand cleaning up for company, what I don't understand is not that it's clean why not use it? Replace your old messy config files with the cleaned up ones.

    • @ifcodingwerenatural
      @ifcodingwerenatural  Před rokem +1

      It's because there's stuff I'm working on, plugins I'm unsure of, a lot of commented out code, etc. Things I want to keep around but wouldn't add value to the video.

  • @annakarolinafranz5946

    to enable tailwindCss? he knows?

  • @apina2
    @apina2 Před 9 měsíci

    It's someone else's config