kkoomen / vim-doge

(Do)cumentation (Ge)nerator for nearly 20 languages 📚 Generate proper code documentation with a single keypress. ⚡️🔥
GNU General Public License v3.0
1.01k stars 50 forks source link

can I have doge use groovyls not jdtls when working with groovy files? #634

Open madelaney opened 1 year ago

madelaney commented 1 year ago

When doing work with groovy files, I'm using groovyls. However, doge wants to load jdtls. This causes an issue where I get the message: nvim-navic: Failed to attach to jdtls for current buffer. Already attached to groovyls.

This is a little confusing because the message is coming from nvim-navic, but I believe it's originating from vim-doge. I can to this conclusion because if I open a groovy file with vim-doge disabled, the error messages goes away. I believe this is being caused by groovy being an alias for java (as defined at doge.vim#104).

so my ask is ... can I tell vim-doge to use groovyls not jdtls for groovy files?

kkoomen commented 1 year ago

Is it fixed if you add this to your .vimrc?

let g:doge_filetype_aliases = {}