Has anyone here been able to get Kotlin Language S...
# getting-started
l
Has anyone here been able to get Kotlin Language Server working with vim/nvim? I've installed it, but just doesn't seem to be working.... Go To Definition not working, etc.
v
i got it working today!
@Levi https://gist.github.com/crankycoder/bb82d7773155e0736efbbce1159b3071 I'm using this in neovim, but I will admit, it's not good enough yet that i can switch back from intellij. the gd jump does work though
i have a bunch of cruft in my vimrc that probably doesn't make much sense anymore - i'm trying to slim it down to a useful set for just kotlin
l
thanks @Victor Ng!
v
i'd like to be able to get docstrings to render in the completion preview - i haven't dug into Coc-Kotlin to see if that's possible
l
right
v
intellij's vim mode is kind of terrible.
l
I've gotten a bit further but jump to definition still not 100%
v
😞
l
Yeah I'm learning that 😩
I wanted to at least be able to have modal editing so when switching between vim and intellij it's not totally different
but yeah it ain't great
v
what does work for you with neovim + coc-kotlin?
l
I'm actually not using coc-kotlin. I'm using mason + lsp-zero.nvim, etc
maybe I'd have better luck with coc
this has worked well for python, nim, etc.
v
ah...my vimrc is ancient. i only recently switched to neovim. 🙃
l
Same actually
I spent a few hours poring over what he did here:

https://youtu.be/w7i4amO_zaEâ–¾

v
Coc has worked super well for me. i've never used mason or lsp-ero
h
In your opinion, how is the Kotlin LSP server in neovim? Do you have experience with JetBrains products and can you make comparisons?
l
Pretty decent in my experience. Probably not as great as IntelliJ, but has everything I feel I need, including jump to definition, listing members, renaming, finding usages, etc
1450 Views