Can't get nvim-java to work on custom lazyvim #283
Replies: 2 comments 1 reply
-
You shouldn't call If you want to add more language support, for example I see you have angular included, what you should do is add angular extra. This is how I have added the lazy extras in my person LazyVim config. BUT, lets say you really want to override a configuration, then you should use Now the error you get is due to require |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot for replying, but so I tried adding this code to my lazy.lua file: require("lazy").setup({
spec = {
{ "LazyVim/LazyVim", import = "lazyvim.plugins" },
{ import = "lazyvim.plugins.extras.lang.angular" },
{ import = "plugins" },
},
}) Specifically the
So it seems I am using Lazy as my extensions manager, but I don't want to use all the plugins that comes with lazyvim? I don't know is that why it is not working, I need to install LazyVim before it works? EDIT: So following up on your second part of the answer, I have seen that I don't need to even call the |
Beta Was this translation helpful? Give feedback.
-
Hello all, I just started using neovim, and I wanted to install nvim-java, since I sometimes use Java. But it seems I cannot get it to work (begginer neovimmer here).
So I went to starter configs recommended for newbies section, and since I am using LazyVim, I headed straight to the lazyvim starter.
So following the code in the starter lazyvim repo, I added this code to my
nvim-java.lua
file:After that I went over to my
treesitter.lua
file, I already had my config there, so I addedjava
to the ensure installed option, like so:And after doing that I had this error:
Then I remembered that the main docs said something about setting up before lspconfig, so I went into my mason.lua and added the
require("java").setup
andrequire("lspconfig").jdtls.setup({})
to it, so here is mymason.lua
file:But still I am having this same error:
Please how can I fix this and install nvim-java in peace, thanks for the help in advance. And in case someone want's to take a look at my config, it's on github. I am commenting the
require setup java
steps in mymason.lua
cause it is crashing things, and also thenvim-java.lua
file I'll change it tonvim-java._lua
so that it will not be loaded.Beta Was this translation helpful? Give feedback.
All reactions