No video

Vim as a Go (Golang) IDE using LSP and vim-go

  Рет қаралды 44,815

octetz

octetz

Күн бұрын

In this video we'll explore setting up Vim with a Language Server Protocol Client (LSP) and vim-go to make a fully functional Go IDE in 2019+.
blog: octetz.com/pos...

Пікірлер: 66
@feignenthusiasm
@feignenthusiasm 5 жыл бұрын
This was a seriously awesome tutorial, thanks so much!
@bejaminhofmann4144
@bejaminhofmann4144 2 жыл бұрын
This is so awesome. It allows me to now use vim as my main editor. I just couldn't remember all the commands for the different languages I use. Now they're the same for all of them.
@chillbro2275
@chillbro2275 Жыл бұрын
Really a terrific video, Josh! I got a lot of what i needed, plus plenty of bonuses.
@viertekco
@viertekco 8 ай бұрын
This is a great video tech tutorial is sound and he does great at keeping pace. Especially like that it's just a plain video...no hollywoodtube😊effects. Well done
@jorgealarconalvarez
@jorgealarconalvarez Жыл бұрын
Thank you! Very clear and easy to follow tutorial!
@PompaTG
@PompaTG 3 жыл бұрын
Very nice! Will be using Go for a class that start in a couple of weeks, so I'll be setting up Vim beforehand :)
@karansingh-kp3xg
@karansingh-kp3xg 4 жыл бұрын
I just use SpaceVim for any language, and i find it very productive. you get everything on one space command.
@AlanOliveira-tb5ku
@AlanOliveira-tb5ku 2 жыл бұрын
That was a lifechange my friend ! Thank you very much
@daltonyon
@daltonyon 2 жыл бұрын
Thank u man, help me a lot!
@azzalos
@azzalos 5 жыл бұрын
Thanks man! This was awesome! I'm setting it up now!
@jaytirth
@jaytirth 4 жыл бұрын
Wonderful explanation! Thank You.
@d4veg
@d4veg 4 жыл бұрын
Very useful set of tooling.
@hsrkfzycfod8
@hsrkfzycfod8 5 жыл бұрын
You're my God now. That's exactly what I was looking for!! Thanks!
@MrHivongxanh
@MrHivongxanh 4 жыл бұрын
Really really helpful for me. Thank you very much for your sharing.
@PeterPetrakis
@PeterPetrakis 3 жыл бұрын
You killed it. Thank you!
@IsaAnsharullah
@IsaAnsharullah 2 жыл бұрын
I have used vim-go for quite sometime but I missed the autocomplete functionality. Thanks!
@patrickmwangi7918
@patrickmwangi7918 3 жыл бұрын
This is very useful. Thanks.
@Velobetty
@Velobetty 4 жыл бұрын
Should also mention govim which is vim-go but implemented in Go! :)
@rek2hispagatos498
@rek2hispagatos498 4 жыл бұрын
do you have a link? I am trying to avoid having more python on my system im so tired of it thanks
@rek2hispagatos498
@rek2hispagatos498 4 жыл бұрын
nevermind I switched the terms of my search and got it I think github.com/govim/govim
@Velobetty
@Velobetty 4 жыл бұрын
@@rek2hispagatos498 yes, that's it! 😊
@ZenMonkIlya
@ZenMonkIlya 3 жыл бұрын
Fantastic explanation, thanks!
@saalimkhan4133
@saalimkhan4133 4 жыл бұрын
Beautifully taught
@sshr4492
@sshr4492 5 жыл бұрын
Awesome, exited to see you debugging go code in next video :)
@SupreetSinghsuppi
@SupreetSinghsuppi 3 жыл бұрын
Great video my dude.
@eamirgh
@eamirgh 4 жыл бұрын
Thanks man! You are beyond levels of awesomeness. *_*
@merlynwang5683
@merlynwang5683 4 жыл бұрын
lots of help , thank you so much man
@herrwolken
@herrwolken 4 жыл бұрын
You are very good at this. Consider doing more tutorials and how-tos. I will subscribe. Do you talk on tech conferences? You sound loke you do.
@krige
@krige 8 ай бұрын
Are you still using vim-go as your go editor? Feels like too much hassle to setup and maintain if compared to VsCode
@jonathanmatthews8928
@jonathanmatthews8928 4 жыл бұрын
Great intro - TVVM!
@user-tf3km2qz9j
@user-tf3km2qz9j 4 жыл бұрын
helpful for me.感謝 thanks
@neblocben3307
@neblocben3307 4 жыл бұрын
Super useful! Thanks!
@StephaneArcher
@StephaneArcher Жыл бұрын
Why did you choose to come back to vim after trying VSCode and realizing it was simpler there? What is the thing that makes you use vim?
@joshrosso
@joshrosso Жыл бұрын
It's a great question and I don't a bunch of passion around my editor or IDE to justify its usage. At a high-level, I really enjoy plugging into the language servers directly and having a level of a customization and transparency. I'll also mention that neovim has done a LOT to make it a viable development environment. For example, building the language server protocol in, so that you don't need CoC at all. VSCode, Intellij, (n)vim are all great. Use what brings you joy. Suffice to say, a lot has changed this this video was made 3 years ago 🙂.
@SeanWingert
@SeanWingert 5 жыл бұрын
Nicely done! Thank you!
@aaronyang1284
@aaronyang1284 4 жыл бұрын
May I ask that have you shared your dotfiles in github? Want more info about your colorscheme, font ..and so on.
@hamed775
@hamed775 4 жыл бұрын
Awesome👏👏👏
@alihammadshah
@alihammadshah 5 жыл бұрын
I have a similar setup and get coc errors sometimes. Searching on the web i find there seems to be some conflict b/w go-vim and coc. i happened rarely but is annoying. Has anything similar happened to you?
@scriptworld
@scriptworld 3 жыл бұрын
got one question: i think that this setup (i got the same) lacks on syntax highlighting for example function names etc... do you go with the default one (which is like nothing) or have you another extension / setting making the code a little bit more colorish ?
@user-on1br5qc2g
@user-on1br5qc2g 2 жыл бұрын
install theme, then :set syntax on
@reddyabeltintayaconde5657
@reddyabeltintayaconde5657 2 жыл бұрын
I'm new using vim
@pevenphoon7359
@pevenphoon7359 4 жыл бұрын
It will start two gopls processes, one for coc and one for vim-go.
@scott8593
@scott8593 3 жыл бұрын
Nice video
@deeeeeds
@deeeeeds 5 жыл бұрын
Have you had weird side effects when writing other languages without a language server installed? Do you know if CoC just falls back on standard "gd" behavior if it doesn't have a configured language server?
@deeeeeds
@deeeeeds 5 жыл бұрын
@@joshrosso I gave it a whirl and spent last night refactoring my entire Vimrc, and it's paid off in spades today. The language server is appreciably faster than using gocode and vim-go. It feels good to close VSCode and go back to the terminal. Thanks for the vid/article!
@failuminati5134
@failuminati5134 5 жыл бұрын
Which font are you using in vim?
@Showmannzzz
@Showmannzzz 5 жыл бұрын
Hi there, Thanks for the tutorial! I am having small issues with the errcheck at the moment. Ccurrently if I cause an error (typing akjdfjakjsdfh) and write, ther will be no quickfix menu that pops up to show my error. I have had the rare occasion the box comes up, but i cant reproduce it. The error is indeed there as my git-gutter shows it as red and when i put my cursor over it, it will show the error the same place as where it shows the parameters of the function in the bottom. It seems to show the error, then it soon gets overriden by the parameter description on the bottom. Any ideas?
@hsrkfzycfod8
@hsrkfzycfod8 5 жыл бұрын
For me it's the other way around, I can't see the function parameters at the bottom at all D:
@boh419
@boh419 Жыл бұрын
blog link is down
@stuckinforloop
@stuckinforloop 4 жыл бұрын
How to do the LSP section with vim 8.2
@YoungMesrine
@YoungMesrine 3 жыл бұрын
Please sir , can you make a video to connect go with vscode on Ubuntu?
@nathanhyland
@nathanhyland 3 жыл бұрын
Any idea why my autocomplete and info shows up twice if I put in my Coc go config?
@nathanhyland
@nathanhyland 3 жыл бұрын
ah I had coc-go installed as well as the coc config golang settings
@ruhnet
@ruhnet 4 жыл бұрын
Fantastic video! Thank you! My only gripe is that the proper pronunciation of JSON is "Jason" (like the name), not "jay-sawn." :-D
@imetatroll3745
@imetatroll3745 4 жыл бұрын
You should use $HOME.
@Oswee
@Oswee 5 жыл бұрын
Really great tut. But i didnt get it... is it possible to install VS Code extensions? That would be crazy awesome. I need some to work with LitElements.*.ts. :) Must dig deeper into this. :)
@danielorodriguez1689
@danielorodriguez1689 4 жыл бұрын
Yes, coc allows to install vscode extensions. I use some snippet collections. Not sure if it will work for more advanced ones
@otoritech
@otoritech 4 жыл бұрын
when i type ".", result is : source languageserver.golang timeout after 5000ms. how to fix this one?
@arthur1338
@arthur1338 2 жыл бұрын
What about neovim ?
@joshrosso
@joshrosso 2 жыл бұрын
I actually use neovim and its integrated LSP client now. I'll need to update this video at some point.
@meuko
@meuko 2 жыл бұрын
@@joshrosso What a coincidence, came back to this video after a few years to check for the most recent comments on neovim and this is what I see. Anyways, not sure if you encounter this too, but have you by any chance ever ran into the issue of declaring new language objects(a struct for example) in different files, and current open buffers not being aware of said language objects? I have to close all buffers and reopen for the integrated lsp client to offer autocomplete -_-
@user-bz7gt4zi7r
@user-bz7gt4zi7r Жыл бұрын
Not very portable:/
@xiaodonghuan2285
@xiaodonghuan2285 5 жыл бұрын
your video lost lots of features of coc and vim-go..and neovim
@fr3fou
@fr3fou 5 жыл бұрын
huh? how so
Vim: Vim as an IDE (VimConf 2020 Talk)
1:06:30
Leeren
Рет қаралды 117 М.
Magic? 😨
00:14
Andrey Grechka
Рет қаралды 12 МЛН
Алексей Щербаков разнес ВДВшников
00:47
Recording and Repeating Commands in VIM (macros)
8:38
octetz
Рет қаралды 8 М.
C++ Coding with Neovim - Prateek Raman - CppCon 2022
59:49
Microsoft FINALLY killed it
6:45
Alex Ziskind
Рет қаралды 630 М.
Vim Kubernetes YAML Support
16:23
octetz
Рет қаралды 7 М.
Let's implement a concurrent non-blocking cache in Go
24:34
Konrad Reiche
Рет қаралды 10 М.
Let Vim Do the Typing
32:07
thoughtbot
Рет қаралды 212 М.
How To Use The Context Package In Golang?
17:03
Anthony GG
Рет қаралды 58 М.
Calico Routing Modes
47:02
octetz
Рет қаралды 11 М.
Getting Started with VIM as a Python Editor
18:35
Machine Learning with Phil
Рет қаралды 44 М.