Setting up Neovim for Java Development

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

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

  • @noctali8049
    @noctali8049 3 года назад +15

    Man I've been trying to all these things with YCM and losing. Gave it fair shot, moving on to Coc... You save my life

  • @tomhames6884
    @tomhames6884 3 года назад +26

    Great stuff!! As someone mentioned below, one for JavaScript / Python / Web Dev pls 🙏

  • @bankairyuu
    @bankairyuu 2 года назад +8

    Is it just me or the Link to the blog doesn't work anymore?

  • @TheOllom1
    @TheOllom1 3 года назад +2

    Whoa. I just started an hour ago trying to setup Neovim for Java and didn't came that far. And just before I got annoyed: Bam new Video "Setting up Neovim for Java Development". You saved my day.

  • @GavinFreeborn
    @GavinFreeborn 3 года назад +5

    While I am not a fan of coc myself Its always nice to see other vim users using vim/neovim with java

    • @chrisatmachine
      @chrisatmachine  3 года назад +2

      I can't imagine not using coc for java at this point. Maybe one day I'll switch over to builtin LSP. What are you using?

    • @GavinFreeborn
      @GavinFreeborn 3 года назад +1

      @@chrisatmachine I use tags, and used to use vim-lsc but am giving neovims native lsp a try. It's not perfect since some projects seem to break it.

    • @msx94
      @msx94 10 месяцев назад +1

      ​@@chrisatmachinedo you still use Vim for Java? Any new features out? Would like to have some prebuild for it if available.

  • @BaptisteRoche
    @BaptisteRoche 3 года назад +3

    Great tutorial!
    Thank you from France :)

  • @momq1434
    @momq1434 3 года назад

    Awesome, very grateful to see your workflow at the beginning of my Java learning.

  • @mtv.smorodin
    @mtv.smorodin Год назад +1

    the link is invalid, where can I find the blog post?

  • @Gett37
    @Gett37 11 месяцев назад +3

    Your "Link to blog" is broken. Very bad.

  • @chupapimunanyo2596
    @chupapimunanyo2596 Год назад +6

    This looks so amazing but I somehow doubt that I can replace my IntelliJ with it. I just think that eventually, there will be something that is missing. For small private projects I could probably use it. But for work idk… what about creating and selecting run configurations like in IntelliJ, what about jumping to references that are not findable with LSP and all that stuff? E.g. when you Inject a value like @Value(„properties.username.age“) can you jump to that properties file etc. ? Idk if I should invest all my time into learning vim but it seems so cool :/

    • @RahulSsup
      @RahulSsup 10 месяцев назад

      Also IntelliJ has searchable dependency tree. Wonder if there’s an equivalent in Nvim.

    • @ro0t115
      @ro0t115 9 месяцев назад +1

      @@RahulSsup i asked the same to chatgpt : IntelliJ has searchable dependency tree. Wonder if there’s an equivalent in Nvim.!
      gpt bro said :
      In Neovim, you can achieve a similar functionality to IntelliJ's searchable dependency tree by using plugins that integrate with build tools like Maven or Gradle. One such plugin is vim-gradle, which provides commands to view and search dependencies in a Gradle project.
      i am learning spring boot and a fan of vim so i end up watching this video (procrastinating .. ha aha)

    • @RahulSsup
      @RahulSsup 9 месяцев назад

      @@ro0t115 thaaanks

  • @jotarokujo6099
    @jotarokujo6099 3 года назад +5

    Nice video 👍
    It would be cool to do an example with C++ development as well.

  • @samtipton8778
    @samtipton8778 2 года назад +4

    article link 404s

  • @citizennbs
    @citizennbs 3 года назад +3

    Any chance you'd redo this video with native LSP for Neovim 0.5?

  • @softwareskills.jinqiang
    @softwareskills.jinqiang 3 года назад +1

    this is amazing. mate, you are too good.

  • @CarlOfHoly
    @CarlOfHoly 3 года назад +2

    Like comming at you with super sonic speed!

  • @xinhu4005
    @xinhu4005 3 года назад

    Wow, great. Looking forward the next debugging video

  • @btqgq
    @btqgq 3 года назад +1

    I've been waiting for this.

  • @congchen3501
    @congchen3501 3 года назад +1

    Nice video.code completion,code generation,linting,code formatting,etc.but is there a elegant way to simply run the code ? Like the console of heavy java IDEs.I notice that spacevim does run java code that way,but I have no idea how they make it.thanks.

  • @daviddeng1766
    @daviddeng1766 2 года назад +3

    Hi, how did you rename the file while renaming the class name? This is such a lovely feature!

  • @GustavoNewton
    @GustavoNewton 3 года назад

    so great man, really thank you very much!!!

  • @deanzhang9099
    @deanzhang9099 2 года назад +1

    awesome ! How can I get the configuration steps??? I want to study how to config.

  • @iHelperRo
    @iHelperRo 10 месяцев назад

    No idea how to make this work. First of all, my entire screen is pink, I change the color scheme but it does not get saved, many errors trying to install your config. Was curious to try nvim with java..

  • @ShoopiDoopa
    @ShoopiDoopa 3 года назад +1

    does it have support for android base projects?

  • @HueHueHue23
    @HueHueHue23 3 года назад +2

    Hey, thanks for the tutorials. Could you please tell me how did you manage to execute CocActions and Rename in a floating window? Thanks.

    • @chrisatmachine
      @chrisatmachine  3 года назад +2

      That’s built in to CoC, so I just called the command. I think it’s somewhat new so try and update the plug-in / extension if you’re not seeing it.

    • @HueHueHue23
      @HueHueHue23 3 года назад +1

      @@chrisatmachine Well, I didn't have floating set by default, but thanks to you I looked up into docs and found this options:
      ```
      "suggest.floatEnable": true,
      "diagnostic.messageTarget": "float",
      "signature.target": "float",
      "coc.preferences.hoverTarget": "float"
      ```
      After putting them in CocConfig, floating started to work.
      Thanks, I thought it was some kind of plugin.

    • @chrisatmachine
      @chrisatmachine  3 года назад +2

      @@HueHueHue23 hmm, I'll have to check if I actually specify this.

  • @NikeNuu
    @NikeNuu 2 года назад

    Thanks for the video! The blog post doesn't seem to work anymore.

  • @eduardojg5197
    @eduardojg5197 3 года назад +6

    Great video! Can you do one for python and one for web dev?

    • @chrisatmachine
      @chrisatmachine  3 года назад +10

      Next video will be Vimspector for Java, Then I will definitely do videos for Python and React development.

    • @chrisatmachine
      @chrisatmachine  3 года назад +1

      @Grisosthone It's a bit tedious tbh, I'm still working out some kinks. But it works fine when I do it right. I'm hoping nvim-dap solves my problems some day.

  • @user-yz6jp1qg8z
    @user-yz6jp1qg8z 9 месяцев назад

    i cant use lvim.transparent_window = true
    can u help me? i need transparency

  • @verdammdeaggsd8408
    @verdammdeaggsd8408 3 года назад +2

    Hello, great tutorial. i love this configuration for coding java. But i have one problem: sometimes the autoformating on save is crashing my whole javafile. how can i edit or deactivate this? Thank u in advance!

    • @chrisatmachine
      @chrisatmachine  3 года назад +2

      Check out coc-settings.json. Remove the autoformat. There’s also a command you could could run I think but I don’t know it off the top of my head.

    • @verdammdeaggsd8408
      @verdammdeaggsd8408 3 года назад

      @@chrisatmachine thank u for this fast answer :) i removed the autoformat for java - this works now - thank u! but i have one more problem :o it seems that nvim looks for other files in folder and change to same format like a other file. Sometimes, when i create a file in a folder with other javafiles, nvim use tabs instead of 2spaces. But in generalsettings i changed it to 2spaces instead of tabs. Where can i find the settings for this? Or how can i deactivate this autoformat?

  • @kuzonkatekar7706
    @kuzonkatekar7706 3 года назад +1

    Are you planning to switch to native LSP anytime soon?

  • @hieuthai8244
    @hieuthai8244 2 года назад

    i am having problem with neovim. i git cloned your nvim file and ran the install.sh file. then i run nvim. and i am getting error "Failed to install lvimuser/lsp-inlayhints.nvim/readme". and when i code sample c++ or java files, i intentionally misspelled the syntax and it didn't show me the error. I also can't do some other things like rename, Error on prepareRename: Cannot rename symbol: there is no symbol at the given location.
    help me please

  • @siyabulelabele4759
    @siyabulelabele4759 2 года назад

    Thanks for the video. Did you get auto imports from Springboot working in Neovim?

  • @dierealitat9485
    @dierealitat9485 3 года назад +1

    how did u manage to get the fzf preview window to be underneath the filesnames? in my case its always on the right side and i havent seen a setting for it yet (5:54)

    • @chrisatmachine
      @chrisatmachine  3 года назад

      its coc-fzf-preview, check my which key file for bindings.

  • @youngthug3124
    @youngthug3124 8 месяцев назад

    the link for the blog is not working

  • @ilug5197
    @ilug5197 3 года назад +1

    Excelent video, theme and font name?

  • @taegyunkim9228
    @taegyunkim9228 3 года назад +1

    hey does anyone know where I can find auto-formatting by saving?? I can't find that command in his github repo. Thanks in advance :)

    • @chrisatmachine
      @chrisatmachine  3 года назад +1

      check coc-settings.json. java needs to be added to autoformat list

  • @eliaspaniagua1069
    @eliaspaniagua1069 3 года назад

    Where can i see the shortcuts list? Great vídeo Mr.

  • @phatle-248
    @phatle-248 9 месяцев назад

    The blog is down. Is there any alternative?

  • @123RogerioFerreira
    @123RogerioFerreira 8 месяцев назад

    Hey, the link to blog is broken.

  • @luisdomiciano
    @luisdomiciano 2 года назад

    Nice video! Brazil here!

  • @wenanoshe
    @wenanoshe 11 месяцев назад

    Great job!

  • @driden1987
    @driden1987 3 года назад +1

    Can you run tests from neovim? I also need to set up some jvm variables
    Is that doable?
    I really want to get rid of IntelliJ

    • @driden1987
      @driden1987 3 года назад +1

      Wow, I had to stop the video before you set how you use Lombok. That's what I need, time to switch!

    • @chrisatmachine
      @chrisatmachine  3 года назад +2

      I'm switching to native lsp soon. There is a plugin that supports running individual tests. I'll probably do a video on it soon.

  • @muazahmed4106
    @muazahmed4106 3 года назад +1

    Can you do for c# too?

  • @VANTYCSolutions
    @VANTYCSolutions 2 года назад

    Is there a way to add unimplemented methods?

  • @kda_-uh3vj
    @kda_-uh3vj 3 года назад

    GREAT VID MAN!!

  • @MagicalCritical
    @MagicalCritical 2 года назад

    yeah. but how you build compile and rune the whole thing?

  • @MsOscarmilitar
    @MsOscarmilitar Год назад

    i cannt download your Config from git

  • @chandragie
    @chandragie 2 года назад +1

    Hey all of this gone from your blog. The link no longer works. and your setup seems changed to .lua based configs.

  • @Sonnicize
    @Sonnicize 3 года назад

    Hey Chris, after installing a new os on my pc, i used your "install-in-one-command" again. Unfortunately the coc-settings.json and coc-plugins aren't in your packages anymore.

    • @chrisatmachine
      @chrisatmachine  3 года назад

      there is a stable coc branch on my repo

    • @Sonnicize
      @Sonnicize 3 года назад

      @@chrisatmachine aah, thank you!

  • @dagmawiabey8358
    @dagmawiabey8358 2 года назад

    this doesnt look like neovim! what color scheme is he using? Thanks!

  • @Amin-ze2hr
    @Amin-ze2hr Год назад

    Hey chris I noticed your live stream video in which you dived deep into setting up java and neovim has been deleted. I was wondering if you could upload it again because there aren't many tutorials on setting up neovim and java. This was legitimately the best video covering it. It's a huge waste that it's gone. Even your blog post about it is unavailable now

  • @kirenai_6518
    @kirenai_6518 3 года назад

    This also works for vim?

  • @PhanTanThangTH
    @PhanTanThangTH 2 года назад

    Thanks a lot :)

  • @TomerBenDavid
    @TomerBenDavid 11 месяцев назад

    How to debug?

  • @picosdrivethru
    @picosdrivethru 2 года назад

    does this work well? honestly one of my reasons for not looking into java jobs is how hard it can be to use neovim for java development lol

    • @nivaldolemos5280
      @nivaldolemos5280 2 года назад

      You avoid jobs because your poor text editor is unable to handle it like a champ???
      Use an actual IDE like Intellij F*king Idea Ultimate.

  • @zxnnightstalker2289
    @zxnnightstalker2289 2 года назад

    Can you make a video about jdtls with lspconfig for java.
    and kotlin language server with lspconfig. plz....

  • @cowboybebop8284
    @cowboybebop8284 3 года назад

    what name this theme ?

  • @S4ntia60
    @S4ntia60 Год назад

    This brings me some hope maybe I can finally be Intellij independent

    • @OzzyTheGiant
      @OzzyTheGiant Год назад

      I feel like Java devs can definitely be IntelliJ independent, and they should try because many of them swear by it but all that shows is that they need so much hand holding. Yeah the productivity stuff is great but I don't think most of them really need that big of an IDE.

  • @adwaithks
    @adwaithks 3 года назад

    which OS is this?

  • @Vogel42
    @Vogel42 3 года назад

    what about debugging? hot code swapping? tomcat support?

    • @Wyrevolverowany
      @Wyrevolverowany 3 года назад

      Good joke Xd

    • @o0phuoctai0o
      @o0phuoctai0o 3 года назад

      Use vimspector for that. I manage to get it work. I use vim8 though

  • @DartMitai
    @DartMitai 3 года назад

    Please show me Neovim + Dart

  • @user-ir1jp3yv2r
    @user-ir1jp3yv2r 3 года назад +1

    Now do same for Python!

  • @user-rv6el8qi1s
    @user-rv6el8qi1s 2 года назад

    09:50 Lombok

  • @hezhao8422
    @hezhao8422 3 года назад +1

    python python python !

  • @codingwithtarik4450
    @codingwithtarik4450 2 года назад

    all this , just i want to know how to run java in nvim hahaha??????

  • @an4s911
    @an4s911 8 месяцев назад

    Hey, the link to the blog is broken