nvim-java plugin install question #1101
Replies: 3 comments 3 replies
-
how do u set up nvim-java in your config? |
Beta Was this translation helpful? Give feedback.
-
I add the nvim-java plugin like this. https://github.com/buptlibo/nvimdots/blob/ed5bd2a69141d7c6e2568d052d2024da6bc310e3/lua/modules/plugins/custom.lua#L37C1-L72C1
|
Beta Was this translation helpful? Give feedback.
-
Oh, after update config. Even if I only open the neovim, a lot of error message occurs like this:
But if I open a java file, neovim start normal, but the jdtls servers doesn't work. So If I want to debug project, it will also show the dap error. |
Beta Was this translation helpful? Give feedback.
-
最近发现有一个新的java plugin,nvim-java(https://github.com/nvim-java/nvim-java ),在添加插件之后,发现如果是设置了lazy=true,哪怕是添加ft=java之后,依然无法实现java audo dap configuration。如果是设置lazy=false,启动的时候会报错
Failed to run
config` for nvim-dap/Users/xx/.config/nvim/lua/modules/utils/init.lua:56: attempt to index field 'colors_name' (a nil value)
stacktrace:
看到报错之后,如果立马按一次enter,就会和之前设置lazy=true类似,不会有java auto dap;
但是如果稍等一会,慢慢按几次enter之后,启动完成,java auto dap configured成功.
有点困惑为什么会出现这个现象,如果有人使用这个java插件遇到类似的问题,可以探讨一下。
Recently I discovered a new neovim plugin nvim-java, after add this plugin, I found if set the lazy=true, even I add ft=java after the lazy=true, the java auto dap configuration can't work. But if set lazy=true, the neovim will occur error after start:
Failed to run
config` for nvim-dap/Users/xx/.config/nvim/lua/modules/utils/init.lua:56: attempt to index field 'colors_name' (a nil value)
stacktrace:
If the error message appears, press enter immediately, will like the lazy=true, java auto dap not work;
but if I wait a while, press enter a couple of times, the java auto dap configured success.
I‘m confused as to why this is happening, if anyone else is experiencing similar issues with this java plugin, could share the info each other.
Beta Was this translation helpful? Give feedback.
All reactions