The perfect Neovim setup for Go

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ธ.ค. 2024

ความคิดเห็น • 360

  • @dreamsofcode
    @dreamsofcode  9 หลายเดือนก่อน +26

    NVChad has had some breaking changes since this video! It's recommended to using the v2.0 branch instead for this video. I'll be doing an updated version of this video again soon!.
    git clone -b v2.0 github.com/NvChad/NvChad ~/.config/nvim --depth 1

    • @ryancloud-r9c
      @ryancloud-r9c 9 หลายเดือนก่อน +2

      I really like your videos, is it possible to setup a full course on nvim from scratch ? instead of using nvchad?

    • @dreamsofcode
      @dreamsofcode  9 หลายเดือนก่อน +5

      @@ryancloud-r9c thank you! Yeah I'm leaning towards a from scratch course / video. Currently playing with some ideas of how I can differentiate it from other ones but I think I have an idea!

    • @ryancloud-r9c
      @ryancloud-r9c 9 หลายเดือนก่อน

      Awesome, thank you so much @@dreamsofcode.

    • @BearsDontStack
      @BearsDontStack 9 หลายเดือนก่อน

      Eagerly awaiting the updated video!

    • @v_util
      @v_util 9 หลายเดือนก่อน +2

      can't wait for updated version of this great setup! thanks a lot for your work

  • @dreamsofcode
    @dreamsofcode  ปีที่แล้ว +34

    You can also install the go formatters using Mason, by adding `golines` `goimports` etc to your mason ensure_installed table. Shout out to @dattien6212 for this suggestion.

    • @natancosta2017
      @natancosta2017 ปีที่แล้ว

      Do u use Gnome?

    • @dreamsofcode
      @dreamsofcode  ปีที่แล้ว +2

      @@natancosta2017 I do for recording!

    • @darthvader4899
      @darthvader4899 ปีที่แล้ว +1

      i can't install goimports_reviser with mason.nvim

    • @liltousin
      @liltousin ปีที่แล้ว

      @@darthvader4899 Because it's not in mason

    • @meritocratik
      @meritocratik 4 หลายเดือนก่อน

      @@darthvader4899 maybe late, but you need 'goimports-reviser'

  • @flannn6
    @flannn6 ปีที่แล้ว +13

    This is just what ive been looking for. Thank you very much for this awesome content! Comming from 3 years of vscode, setting up neovim from scratch was pretty challenging specially because id never spoke lua before. Thanks! :wq

  • @dmz985
    @dmz985 ปีที่แล้ว +38

    I'd really love to see a video about your arch setup (WM/DE, programs you use, especially your video editor / encoder). Top quality content.

  • @wallacecamarinha4808
    @wallacecamarinha4808 10 หลายเดือนก่อน +3

    I'm just starting with nvim and as someone who doesn't know a lot of lua, or nvim config, your video helped a ton. It was one of the most simple setups to quickly get started with go.
    Thanks man, keep up the good work.

  • @myoungbae8169
    @myoungbae8169 ปีที่แล้ว +10

    Thank you so much for this. I have been wanting to make the jump into neovim for a long time and I think this has done it for me. Amazing content! It would be amazing to see a setup for Typescript & React for more FrontEnd work setups :)

    • @dreamsofcode
      @dreamsofcode  ปีที่แล้ว +7

      Ive got it on the backlog!

    • @jaredconnor7156
      @jaredconnor7156 ปีที่แล้ว +1

      Coming here to +1 on a Typescript video too, that would be awesome.

  • @areeburrehmankhan1166
    @areeburrehmankhan1166 ปีที่แล้ว +2

    Yes. Yes Yes. Finally man you can't believe how much I waited for this specific video. And when you mentioned it on discord that you were gonna upload Man I just kept checking your channel.

  • @Ic37r011
    @Ic37r011 ปีที่แล้ว

    This is by far the best run through of setting up neovim for Go programming, hands down. Thank you sir. Thank you

  • @moonlightnirvana1591
    @moonlightnirvana1591 ปีที่แล้ว +1

    Earned a sub. Looked at the rest of your videos and it's amazing the quality of content you are putting out. Keep up the good work.

    • @dreamsofcode
      @dreamsofcode  ปีที่แล้ว

      Thank you! I have a new one coming out this week that I've tried a lot of new concepts with. Hoping this one comes through really well!

  • @davidm0rgan
    @davidm0rgan ปีที่แล้ว +1

    Lots of insight here, delivered with great pacing, thanks.

  • @spacewad8745
    @spacewad8745 ปีที่แล้ว +44

    i was the 70th like. i am sorry for I have ruined the harmony of the world.

  • @retzerR
    @retzerR ปีที่แล้ว

    I saw your more recent videos of neovim language configs, and was wondering where the go one was. Awesome video!

  • @brunojesus5444
    @brunojesus5444 ปีที่แล้ว +3

    Thank you for this setup. There's one thing missing for me, you shown how to debug tests, but what if I want to start a file and debug it?

  • @crusader_
    @crusader_ ปีที่แล้ว

    Top tier content and more every time.
    This channels gonna blow up.

  • @jay_morelli
    @jay_morelli ปีที่แล้ว

    Great!! Thanks so much for the content! You have a great future ahead

    • @dreamsofcode
      @dreamsofcode  ปีที่แล้ว

      Thank you! I really appreciate hearing that.

  • @ericflores4353
    @ericflores4353 9 หลายเดือนก่อน

    Thanks!

    • @dreamsofcode
      @dreamsofcode  9 หลายเดือนก่อน

      Thank you so much! I really appreciate the support!

  • @RootsterAnon
    @RootsterAnon ปีที่แล้ว +1

    Hey, I also use Arch, btw... nice to meet you!

  • @stephanegmt3227
    @stephanegmt3227 ปีที่แล้ว +2

    Really great !
    what is you terminal font if you mind ?
    Thanks

  • @aleatoirealeatoire-s2j
    @aleatoirealeatoire-s2j 3 หลายเดือนก่อน +1

    I friends ty for your video, i'm trying to install nvchad like you install in this video but that's not work, I'm required to install the version 0.9.0 because i have for now the 0.9.5 for work or that's work with all version of neovim ?

  • @paulliu6057
    @paulliu6057 ปีที่แล้ว

    Really love this video! Thank you, sir!

  • @SayfSentinel
    @SayfSentinel ปีที่แล้ว

    Your videos are way better than the best Netflix shows

    • @dreamsofcode
      @dreamsofcode  ปีที่แล้ว

      Haha thank you! That's such nice feedback.

  • @vuongngo8228
    @vuongngo8228 ปีที่แล้ว

    I watch 7 minutes of your video and follow in half a day to config my neovim

    • @dreamsofcode
      @dreamsofcode  ปีที่แล้ว

      I'm hopefully going to make it easier to follow in the future! Stay tuned for that.

    • @vuongngo8228
      @vuongngo8228 ปีที่แล้ว

      @@dreamsofcode btw your video is great. Keep it goingg

  • @th33ng
    @th33ng ปีที่แล้ว

    Thanks for the video. Awesome work!

    • @dreamsofcode
      @dreamsofcode  ปีที่แล้ว

      Thank you for watching! Glad you enjoyed it.

  • @krishnachaithanyaks9693
    @krishnachaithanyaks9693 ปีที่แล้ว

    First time in my life watching a TH-cam video that was posted minutes ago. 😅. By the way I subscribed to this channel this morning!

    • @dreamsofcode
      @dreamsofcode  ปีที่แล้ว +1

      Thank you! I'm glad you liked it.

    • @krishnachaithanyaks9693
      @krishnachaithanyaks9693 ปีที่แล้ว

      It's me supposed to say Thank you for teaching me things for free! Thank you so much sir!

  • @longdashes
    @longdashes ปีที่แล้ว

    AND THERE IT IS FOR GO; AS IF YOU'D KNEW I HAVE TO DO A PROJECT IN IT; AAAH!!!!!

  • @brendankerr148
    @brendankerr148 ปีที่แล้ว +2

    Looks like null-ls was archived recently. Any thoughts on this? Thinking of running with null-ls for the time being on my new neovim setup until the formatting starts failing. Hopefully by then there should be some good alternatives. I haven't seen much but haven't looked too much and am pretty new to neovim community.

    • @SulemanKhan-kn9mj
      @SulemanKhan-kn9mj 11 หลายเดือนก่อน

      you can use none-ls which is same package with different name

  • @ChatGTA345
    @ChatGTA345 ปีที่แล้ว +4

    For Go syntax highlighting, consider adding "gomod", "gosum" and "gowork" as well

  • @joaocarlosfilho
    @joaocarlosfilho ปีที่แล้ว

    Love it! Thanks a lot!

  • @themarian
    @themarian ปีที่แล้ว

    TOP quality content! Thank you sooooo much!!

    • @dreamsofcode
      @dreamsofcode  ปีที่แล้ว

      Thank you for watching! I'm glad you enjoyed it!

  • @valdikamenarov8630
    @valdikamenarov8630 9 หลายเดือนก่อน

    Would've loved to see a way to run unit tests from within your setup. Apart from that awesome setup!

    • @dreamsofcode
      @dreamsofcode  9 หลายเดือนก่อน

      I'll be redoing it soon and will add unit tests in next time!

  • @TheBurntHoney
    @TheBurntHoney ปีที่แล้ว +1

    Isnt null ls archived?

  • @gost
    @gost หลายเดือนก่อน

    This setup does not work. Neovim does not respect the config 2:16, and gopls cannot be installed to nvim for whatever reason. nvim is built from source, go is installed, gopls is installed (everything with default locations). Error: "spawn: go failed with exit code - and signal -. go is not executable" could not find a solution.

  • @derekallred7251
    @derekallred7251 ปีที่แล้ว +3

    One for Elixir would be great! I have it setup on my machine but it would be cool to see if you do it differently. Great videos!

    • @dreamsofcode
      @dreamsofcode  ปีที่แล้ว +1

      Absolutely! Elixir is an awesome language.

  • @coffeeintocode
    @coffeeintocode ปีที่แล้ว +4

    I'm a big Go user so super thanks for this! Can you set up TypeScript as well? (Can't escape JS land :) )

  • @danielniels22
    @danielniels22 6 หลายเดือนก่อน

    2:03 how do you enter newline between that curly braces in Vim? My way is press “i” and then press “enter” to do that. But it seems like you are still in Normal mode doing that. How? This is my first time using Vim 🙏

    • @teslagaming2076
      @teslagaming2076 2 หลายเดือนก่อน

      @@danielniels22 Neovim beginner here, i used todo that too, but in your key maps file or wherever you like you can set a keymap in normal mode to go into insert mode press enter press esc and k to go back to previous line, there might surely be a better way to do that but this is how i achieved it 😅

  • @ThisGuyRocksLikeCrazy
    @ThisGuyRocksLikeCrazy ปีที่แล้ว +1

    Is this better than go-vim?

  • @sarves_boreddy
    @sarves_boreddy ปีที่แล้ว

    Thanks for the video 😊

  • @Davidlavieri
    @Davidlavieri ปีที่แล้ว +1

    Ayoooo debug was so essential i couldn't bother to set it up on nvim and went back to goland

    • @dreamsofcode
      @dreamsofcode  ปีที่แล้ว +1

      Now you can use my config :)
      To be fair, I want to improve the debugging experience further using nvim-dap-ui which provides even better ui features for debugging.

  • @jiteshkumarsahoo2830
    @jiteshkumarsahoo2830 5 หลายเดือนก่อน

    Is there a way to remove the unused import on save?

  • @MrDiniz-w4p
    @MrDiniz-w4p 9 หลายเดือนก่อน

    Hi, thanks for the video! What terminal font do you use? On mine the icons don't appear

  • @martindimitrov8547
    @martindimitrov8547 ปีที่แล้ว +5

    Also, it would be cool if you made a video show asking your workflow: your most used commands and flow of vim + tmux

  • @roarc0
    @roarc0 7 หลายเดือนก่อน

    I use a lot the rename identifiers with f2 (using :%s/aa/bb/g is not the same). is there a similar function? Also generate unit test and the "extract function" from the selection of a block of code.

  • @raymondong349
    @raymondong349 9 หลายเดือนก่อน

    hello, thank you for the video, you've earned yourself a subscriber!
    I'm getting started with NvChad and having some difficulty understanding how the config works. Could you help me please?
    1. in 9:49, we use init field for loading key mapping for nvim-dap but config field for loading key mapping for dap_go, why is that?
    2. Is this the preferred way for setting keybinding for nvChad? Also, I can’t see how load_mappings is linked to fetching the table from mappings.lua to get the key mapping 😅
    Thank you so much for your help!

  • @MrDevianceh
    @MrDevianceh ปีที่แล้ว +2

    Would you do one for typescript/react?

  • @iatheman
    @iatheman ปีที่แล้ว +1

    Great video! Learn a ton and got a great neovim env for Go!
    One thing though, looks like gopls doesn't have the completeUnimported option anymore (4:02) and the behavior is there by default now.

    • @dreamsofcode
      @dreamsofcode  ปีที่แล้ว +2

      Thank you!
      That's good to know! Thank you for sharing.

  • @TheComix96
    @TheComix96 ปีที่แล้ว +1

    Nice video! I have a question since I watched the NvChad video. Is there a way to execute the various installs/updates through NvChad o masoninstall from command line? I wrote an ansible playbook for some configs in vim and nvim and I wanted to install all through that

    • @dreamsofcode
      @dreamsofcode  ปีที่แล้ว +2

      Hmm that's a good question. I'm sure there is but I'll have to dig it. I just tend to use git to manage my config. Mason itself can be used more than I'm using in the video, which is my mistake!

    • @TheComix96
      @TheComix96 ปีที่แล้ว

      Look, I think that I kinda did something through the custom files in Jinja template format. When I'll push and redefine all, I could make it public

  • @jaredconnor7156
    @jaredconnor7156 ปีที่แล้ว

    If you don't mind me asking, what do you use for recording your terminal? The background and perspective are beautiful!

    • @dreamsofcode
      @dreamsofcode  ปีที่แล้ว +1

      I use ffmpeg and a lot of motion animation! I'm actually going to start building these out into products so others can do the same also!

  • @ariel85
    @ariel85 11 หลายเดือนก่อน

    Amazing! Which nerd font do you use?

    • @dreamsofcode
      @dreamsofcode  11 หลายเดือนก่อน

      I use JetBrainsMono Nerd Font!

  • @jed_hed2474
    @jed_hed2474 ปีที่แล้ว

    I've tried doing a clean install of NvChad and I keep running into the same issue: Mason doesn't have any of the golang formatters listed. When I try to run the install at 2:33, it gives me a error saying that it can't find those packages. "spawn: go failed with exit code - and signal -. go is not executable" Any advice?

    • @dreamsofcode
      @dreamsofcode  ปีที่แล้ว +1

      Hmm, do you have Go installed on your system? You can jump onto my discord as well for assistance too!

    • @jed_hed2474
      @jed_hed2474 ปีที่แล้ว +1

      @@dreamsofcode Oh, that might be why! I've got golang installed because I build sites through Hugo. I'd be more than grateful if you give me a hand on Discord!

    • @artemsedykh
      @artemsedykh ปีที่แล้ว

      Try to remove and add again --no-fork flag in case you're using neovide. Cause for some reason it setting PATH to nil.

  •  ปีที่แล้ว +1

    Thanks a lot! I'm happy with nvim and go.

  • @nextorlg
    @nextorlg ปีที่แล้ว +2

    Great video. It's going to take me a while to modify my config on top of nvchad default and the plugin ray-x/go.nvim to make things work well, but you showed me how to do something that was bothering me a ton. I think it would be good to show I to do formatting without more that gopls, for people like me wants to use as less plugins as possible until they get a good understanding on the basics. Thanks!

    • @dreamsofcode
      @dreamsofcode  ปีที่แล้ว

      That's a good suggestion! I went with null-ls so one can build off of, but keeping it simple is also a good idea.

  • @dadagj728
    @dadagj728 ปีที่แล้ว

    what if some characters do not display at my nvim on Windows 10? e.g. list markers? only have the crossed out rectangles, and the text?

  • @mfinixone1417
    @mfinixone1417 ปีที่แล้ว

    You see that red line error that the LSP gives when you make an error, is there a way to give it a max charecter limit for example for each 30 charecter make a new line

  • @ArthurSantos-lq9gi
    @ArthurSantos-lq9gi ปีที่แล้ว +1

    First of all, great video!!
    I'm also using NvChad thanks to you, you have freed me from using the old 'vi" for years. I just have one problem with NeoVim which is Lua. For instance, how would the final configuration be, if I wanted to merge the Rust configuration you made previously, with this one? I think you could make a video on this, or a shorts, after seeing people here on this comment section asking for more languages.
    Lastly I found a typo on the splits for the "Debugging" section.
    Thanks for the time and effort making very high quality content.

    • @dreamsofcode
      @dreamsofcode  ปีที่แล้ว +3

      Thank you for the feedback! And for spotting the typo.
      As for merging, you should just be able to apply the same process but just add the additional fields, rather than replacing anything. i.e. for mason
      ```
      ensure_installed {
      "rust-analyzer",
      "gopls"
      }
      ```
      and for the lsp you'd have two entires, one for lspconfig.gopls and one for lspconfig.rust_analyzer.
      A short is a great idea! I may also set up a website with an faq as well.

  • @TalesMarinho
    @TalesMarinho ปีที่แล้ว +1

    isnt any step missing after clonning the NVChad repo? I mean, I am getting the following error after cloning the way you proposed:
    Error detected while processing /home/tales/.config/nvim/init.lua:
    E5113: Error while calling lua chunk: cannot open /home/tales/.local/share/nvim/nvchad/base46/defaults: No such file or directory

    • @fikurimax
      @fikurimax 3 หลายเดือนก่อน

      how to resolve this?

  • @nexusdino4374
    @nexusdino4374 ปีที่แล้ว +1

    Hi! I have a question: Is delve available for rust as well?

    • @tanieltari4539
      @tanieltari4539 ปีที่แล้ว +1

      no, delve is go specific debugger

    • @dreamsofcode
      @dreamsofcode  ปีที่แล้ว +1

      nvim-dap should just work with lldb in Rust. I have a video for rust which shows how!

    • @nexusdino4374
      @nexusdino4374 ปีที่แล้ว

      @@dreamsofcode ty

  • @bishowpandey453
    @bishowpandey453 ปีที่แล้ว

    What window manager are you using?

  • @badbgp
    @badbgp ปีที่แล้ว +1

    Now that null-ls is being archived what is the proper way to install formatter like gofumpt?

    • @dreamsofcode
      @dreamsofcode  ปีที่แล้ว +3

      Still install it using mason but it's a great question on what to use next. I'll probably do a video on the right option when one appears! In the next video on the series I'm going to look at a couple of options for it

    • @AdrianAyala
      @AdrianAyala ปีที่แล้ว

      @@dreamsofcode Please do! I just got to this portion of the video =( Back to VSCode....not that it isn't bad

  • @fahimferdous1641
    @fahimferdous1641 ปีที่แล้ว

    Truely an underrated channel. Hope your growth soon becomes proportional to 2^n

    • @dreamsofcode
      @dreamsofcode  ปีที่แล้ว

      Thank you. I appreciate that a lot!

  • @Majiy00
    @Majiy00 ปีที่แล้ว

    Great video! Do you know if there is an easy way in nvim to run a single sub tests, particularly those written using maps ?

    • @dreamsofcode
      @dreamsofcode  ปีที่แล้ว +1

      I don't believe it's possible unfortunately. I'm not sure if it's possible to run a single table test with just the `go test` command either.

  • @justsomeguy8385
    @justsomeguy8385 5 หลายเดือนก่อน

    I'm not liking how the LSP handles tmpl files. idk if I don't have it correctly configured or what, but there is no autocomplete for go variables or javascript.

  • @bijayaprasadkuikel5162
    @bijayaprasadkuikel5162 5 หลายเดือนก่อน +2

    This needs to be updated for 2024, I could not set up my neovim as per the instruction.

    • @gost
      @gost หลายเดือนก่อน

      It is sad that I did not find your message earlier. Did you find any solution?

    • @bijayaprasadkuikel5162
      @bijayaprasadkuikel5162 หลายเดือนก่อน +1

      @@gost No, i left the idea of using neovim, i am happy with goland and phpstorm.

  • @brviking
    @brviking ปีที่แล้ว

    I must say, it was amazing! I would like to see how to add more details, like opening all "debugging stuff" automatically on debug start. Nevertheless, using neovim as primary IDE has been achieved. Thanks!

    • @dreamsofcode
      @dreamsofcode  ปีที่แล้ว +1

      If you check out my python video, I've improved on the debugging UI, and you can apply the same configuration to Go 🙏

    • @brviking
      @brviking ปีที่แล้ว

      @@dreamsofcode thanks! Done, my setup is wonderful 💯

  • @VitorDonnangeloCardoso
    @VitorDonnangeloCardoso ปีที่แล้ว

    Great tutorial from the goat. Would love to see a Python one...

    • @dreamsofcode
      @dreamsofcode  ปีที่แล้ว +1

      Its coming! I've got it in the pipeline

  • @jonathanwilson8809
    @jonathanwilson8809 10 หลายเดือนก่อน

    You can use tree sitter for better syntax highlighting

  • @v_util
    @v_util 9 หลายเดือนก่อน

    hi! how can i setup goimports-reviser to delete unused imports? the mentioned config doesn't do this, maybe at my case however i tried to write, rewrite and simply copy-paste the whole config and tried to add `null_ls.builtins.formatting.goimports_reviser.with({ args = { "-rm", "unused", "$FILENAME" }, })` to the custom/configs/null-ls.lua file but it didn't work too. i'll appreciate any advice. thanks!

    • @dreamsofcode
      @dreamsofcode  9 หลายเดือนก่อน

      imports-reviser has had some issues recently, it might be worth trying just standard goimports and seeing if that works better

  • @cuongvoquoc6534
    @cuongvoquoc6534 ปีที่แล้ว

    I don't use NVChad but still use Mason + LspConfig. The issue that I want to make neovim aware goenv eachtime open a repository. How can I do it clearly in nvim config?

  • @krige
    @krige ปีที่แล้ว

    7:05 Debugging is misspelled on the video section tooltip

  • @SirRandallDoesStuff
    @SirRandallDoesStuff ปีที่แล้ว

    Thanks, this helped me move from vscode to nvim. This is amazing only one issue with this tutorial. Catppuccin is the worst theme :P other than that solid. Thank you so much.

  • @КоньЛюдоед-ф6ф
    @КоньЛюдоед-ф6ф 5 หลายเดือนก่อน

    nvim its really so hard... what is good in ide? its work right here right now. For beginner trying to nvim is nightmare
    does it works on mac? I got this error with debug
    Error on launch: Failed to launch: could not launch process: can not run under Rosetta, check that the installed build of Go is
    right for your CPU architecture

  • @vivianeramosluz547
    @vivianeramosluz547 10 หลายเดือนก่อน

    What font for nvim do you use in this video?

  • @frostfire6591
    @frostfire6591 10 หลายเดือนก่อน

    Been using goland for go but wanted to switch over to nvim. The only problem I’ve had is the syntax highlighting being the same for vars and package names, and was wondering if anyone had a solution.

  • @ammartahir86
    @ammartahir86 2 หลายเดือนก่อน

    Apologies if the question is redundance but after cloning NvChad I no longer get the init.lua file.
    neither does it ask me if I want a custom config

    • @gost
      @gost หลายเดือนก่อน

      Did you make it work?

  • @mateuszkubaszek7318
    @mateuszkubaszek7318 ปีที่แล้ว

    What is your perfect terminal emulator? Looks so nice. I'm on macos and use warp (yeah I know telemetry etc, but this is so beatyful), but looking some for backup.

    • @dreamsofcode
      @dreamsofcode  ปีที่แล้ว +1

      I use Alacritty! Warp does look nice but as you mentioned. I've just picked up a Mac for creative work so may give warp a little try. I have alacritty on it currently however.

  • @jacostaperu
    @jacostaperu 8 หลายเดือนก่อน

    Would you mind doing the setup demo for OCAML

  • @Simon-xi8tb
    @Simon-xi8tb 11 หลายเดือนก่อน

    Yeah, but default omnifunc completion sucks. DO I need to add autocomplete on topf of that ?

  • @alkmst-xyz
    @alkmst-xyz ปีที่แล้ว

    This is amazing! Would like to see a setup for python as was a lot more work (at least for me). Ruff seems promising.
    Edit: found your python video. Thanks!

  • @brandongregori995
    @brandongregori995 ปีที่แล้ว +2

    FYI null-ls is archived and no longer relevant. Not sure what the best replacement is though

    • @AdrianAyala
      @AdrianAyala ปีที่แล้ว

      I JUST got to this part of the video and I'm sad cause I'm like.......welp he didn't go over the gopls option =(

  • @RudraNarayanPanda-p3r
    @RudraNarayanPanda-p3r ปีที่แล้ว +1

    Hi sir, I am new to neovim, how you are creating new files and new folders can you pls tell me the shortcuts

    • @AdrianAyala
      @AdrianAyala ปีที่แล้ว +1

      When you're in the explorer (ctrl+n) select the directory you want to make your file/dir and then push 'A'. You will see a prompt at the bottom of your screen say "Create file..." if you type "main.go" or whatever then you will create a file. If you want a directory just type the directory name with a '/' at the end.

  • @petilove
    @petilove ปีที่แล้ว

    What shortcut are you using in order to create a new file inside of neovim? thanx

  • @Jdtv689
    @Jdtv689 3 หลายเดือนก่อน

    How do you actually start debugging from wihtin nvim?

  • @Cyneptic
    @Cyneptic ปีที่แล้ว

    Great video, I have one issue though, for tag adds, I keep getting struct not found even though there are structs defined and the cursor is on them, could you maybe help me out or point me in the right direction? thanks

    • @dreamsofcode
      @dreamsofcode  ปีที่แล้ว +2

      Do you have treesitter installed? If you jump on my discord server I can better help

  • @ricardorien
    @ricardorien ปีที่แล้ว

    settings = {
    gopls = {
    staticcheck = true,
    }}
    Statickcheck in order to avoid redundant code, it's a strong help

  • @JOker-iz9nk
    @JOker-iz9nk ปีที่แล้ว +4

    Hey, thanks for this :) Could you do one for Python?

    • @dreamsofcode
      @dreamsofcode  ปีที่แล้ว +4

      I can!

    • @JOker-iz9nk
      @JOker-iz9nk ปีที่แล้ว +1

      @@dreamsofcode Hell yeah awesome, getting into neovim has been soooo much easier with all your videos. Cheers! :)

    • @srky19
      @srky19 ปีที่แล้ว +1

      l would also like to see this kind of setup for python! It' s so clean and fast!

  • @javiergomezve
    @javiergomezve ปีที่แล้ว

    Awesome 👏

  • @yakomisar
    @yakomisar ปีที่แล้ว

    Please help - the default behavior of gopls is to report multiple errors at once rather than displaying only one error at a time. Following your instructions, now I get errors one by one. Trying to open :copen shows a completely blank list of errors. It seems that this is not the expected behavior.

    • @dreamsofcode
      @dreamsofcode  ปีที่แล้ว +1

      If you jump on my discord we can help!

  • @Ryan-uh5zf
    @Ryan-uh5zf ปีที่แล้ว

    Excellent videos, when I am using the nvim-dap-go, I found that if there is an error in the test function, the debugger exits without showing the error message. Have you encountered the same problem before?

    • @dreamsofcode
      @dreamsofcode  ปีที่แล้ว +1

      Hmm I have no? Is it a compilation error or just a failure in the test?

    • @Ryan-uh5zf
      @Ryan-uh5zf ปีที่แล้ว

      Let's say that I have a function f, which has an error, that could be fixed by a blank import. When I run test code for f, I expect the test to fail and produce an error message related to the error of f, but when I ran the test code, it just silently ended, no error messages or no signs. `result, err := f(...)`, there is something in `err` and I call log.Fatal(..., err), but there is no log showing. @@dreamsofcode

  • @marko95g
    @marko95g ปีที่แล้ว

    is there any plugin for updating gopls, dlv, gofumpt, goimports_reviser and golines or I have to execute those commands every time ?

    • @dreamsofcode
      @dreamsofcode  ปีที่แล้ว

      Mason would be better for maintaining these long term. It may not have everything, however.

    • @marko95g
      @marko95g ปีที่แล้ว

      @dreamsofcode I add those plugins to mason:
      "williamboman/mason.nvim",
      opts = {
      ensure_installed = {
      "gopls",
      "delve",
      "gofumpt",
      "goimports",
      "goimports-reviser",
      "golines",
      "staticcheck",
      },
      },

  • @ThomasWSmith-wm5xn
    @ThomasWSmith-wm5xn 4 หลายเดือนก่อน

    how did you get that explorer on the side to open?

    • @gost
      @gost หลายเดือนก่อน

      Ctrl+n

  • @amircodes
    @amircodes 8 หลายเดือนก่อน

    Hey, I hope you're doing well. What is name the font you're using in your terminal?

    • @Derrick_KD
      @Derrick_KD 8 หลายเดือนก่อน

      Thats JetBrainsMono Nerd Font

  • @dylanpotoy5844
    @dylanpotoy5844 ปีที่แล้ว

    Great video!

    • @dreamsofcode
      @dreamsofcode  ปีที่แล้ว

      Thank you! I appreciate the feedback!

  • @PanosGeorgiadis
    @PanosGeorgiadis ปีที่แล้ว

    Do you happen to know if this is working with GitHubs Copilot as well?

    • @dreamsofcode
      @dreamsofcode  ปีที่แล้ว +1

      You can add copilot to Neovim pretty easily! I've got a video in the planning stages on how to do that as well!

  • @dev.info.2000
    @dev.info.2000 10 หลายเดือนก่อน

    I use wsl2 in window, I installed golines but it alert command not found golines

  • @miteshthakurr
    @miteshthakurr 4 หลายเดือนก่อน

    what terminal emulator are you using?

  • @reandov
    @reandov 8 หลายเดือนก่อน

    Does anybody have a good solution for syntax highlighting and formatting for Go Template Files?

  • @GuillaumeMaka
    @GuillaumeMaka ปีที่แล้ว

    Do you have a nvim setup for SQL (PL/SQL, Transact-SQL, Store Procedure....).
    Thanks for the great content and resources on nvim.

    • @dreamsofcode
      @dreamsofcode  ปีที่แล้ว +2

      I do not yet! But I can add it to the backlog

    • @dmitrygavrovsky5938
      @dmitrygavrovsky5938 ปีที่แล้ว

      @@dreamsofcode Please add to backlog as it's only stuff stopping me from switching to neovim completely

  • @seandougherty3022
    @seandougherty3022 9 หลายเดือนก่อน

    Now that null-ls is a public archive and no longer maintained, do you plan to redo your series of setups that use null-ls? It's a shame it was archived but here we are. For this series, we could use mason to install the formatting tools and then, for example, when using lspconfig, just pass the gofumpt setting to gopls.
    just a thought :) thanks for the great series of setup videos!!

    • @dreamsofcode
      @dreamsofcode  9 หลายเดือนก่อน +1

      I will be redoing it soon! For the mean time you can drop in none-ls instead as it's a drop in replacement!

    • @seandougherty3022
      @seandougherty3022 8 หลายเดือนก่อน

      @@dreamsofcode that's great to hear. yeah i was looking at none-ls and was going to attempt the drop-in and go from there :)
      looking forward to the redo. thank you for all of your hard work, it's appreciated.

  • @abhishekjaiswal5239
    @abhishekjaiswal5239 ปีที่แล้ว

    can you create a video for the terminal setup you have?

  • @naranyala_dev
    @naranyala_dev ปีที่แล้ว

    Alacritty + tmux + AstroNvim
    BONUS: Rust based cli tools, like exa and bat

  • @EATNEWS
    @EATNEWS ปีที่แล้ว

    Can you do a video on how you would set up multiple languages. I get the concept but would help to see examples