-
-
Notifications
You must be signed in to change notification settings - Fork 62
bug: Install Error nvim-java mason registry is not added correctly! #240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Guide in the link didn't help? |
@s1n7ax I tried using the methods from the link to resolve the issue, but it didn't work. |
What have you tried? |
I think it's an issue with Mason.nvim, so I tried the three methods mentioned in |
@ShenFeng312 I know, I'm asking what changes did you do in the code. |
@s1n7ax I didn't make any other changes. this is my plugins dir
this is my config in return {
'williamboman/mason.nvim',
opts = {
ui = {
icons = {
package_installed = '✓',
package_pending = '➜',
package_uninstalled = '✗',
},
},
},
-- use OPTS property to pass the configuration
-- lazy vim call the setup function for you
-- config = function()
-- require('mason').setup({})
-- end
-- ^^^^^^^^^^^^^^^^ DON'T DO THIS
}
this is my config in return {'nvim-java/nvim-java'}
and this is my config in require("config.lazy")
local map = vim.api.nvim_set_keymap
local opts = { noremap = true, silent = true }
-- Move to previous/next
map('n', '<A-,>', '<Cmd>BufferPrevious<CR>', opts)
map('n', '<A-.>', '<Cmd>BufferNext<CR>', opts)
-- Re-order to previous/next
map('n', '<A-<>', '<Cmd>BufferMovePrevious<CR>', opts)
map('n', '<A->>', '<Cmd>BufferMoveNext<CR>', opts)
-- Goto buffer in position...
map('n', '<A-1>', '<Cmd>BufferGoto 1<CR>', opts)
map('n', '<A-2>', '<Cmd>BufferGoto 2<CR>', opts)
map('n', '<A-3>', '<Cmd>BufferGoto 3<CR>', opts)
map('n', '<A-4>', '<Cmd>BufferGoto 4<CR>', opts)
map('n', '<A-5>', '<Cmd>BufferGoto 5<CR>', opts)
map('n', '<A-6>', '<Cmd>BufferGoto 6<CR>', opts)
map('n', '<A-7>', '<Cmd>BufferGoto 7<CR>', opts)
map('n', '<A-8>', '<Cmd>BufferGoto 8<CR>', opts)
map('n', '<A-9>', '<Cmd>BufferGoto 9<CR>', opts)
map('n', '<A-0>', '<Cmd>BufferLast<CR>', opts)
-- Pin/unpin buffer
map('n', '<A-p>', '<Cmd>BufferPin<CR>', opts)
-- Close buffer
map('n', '<A-c>', '<Cmd>BufferClose<CR>', opts)
-- Wipeout buffer
-- :BufferWipeout
-- Close commands
-- :BufferCloseAllButCurrent
-- :BufferCloseAllButPinned
-- :BufferCloseAllButCurrentOrPinned
-- :BufferCloseBuffersLeft
-- :BufferCloseBuffersRight
-- Magic buffer-picking mode
map('n', '<C-p>', '<Cmd>BufferPick<CR>', opts)
-- Sort automatically by...
map('n', '<Space>bb', '<Cmd>BufferOrderByBufferNumber<CR>', opts)
map('n', '<Space>bn', '<Cmd>BufferOrderByName<CR>', opts)
map('n', '<Space>bd', '<Cmd>BufferOrderByDirectory<CR>', opts)
map('n', '<Space>bl', '<Cmd>BufferOrderByLanguage<CR>', opts)
map('n', '<Space>bw', '<Cmd>BufferOrderByWindowNumber<CR>', opts)
require('java').setup()
require('lspconfig').jdtls.setup({})
vim.cmd('colorscheme tokyonight') |
That's weird. Do you have your config on github? |
Here~Thank you very much for your help https://github.com/ShenFeng312/nvim-config @s1n7ax |
@ShenFeng312 It works fine. Probably you are using an older lazy.nvim version. Try updating all the plugins. Version must be |
@s1n7ax Thank you, I found the reason. I think we need to add a note in the documentation to inform users to run |
Uh oh!
There was an error while loading. Please reload this page.
Did you check docs and existing issues?
Neovim version (nvim -v)
v0.9.5
Operating system/version
Ubuntu 24.04
Describe the bug
Error detected while processing /home/shenfeng/.config/nvim/init.lua:
nvim-java mason registry is not added correctly!
This occurs when mason.nvim configured incorrectly
Please refer the link below to fix the issue
https://github.com/nvim-java/nvim-java/wiki/Q-&-A#no_entry-cannot-find-package-xxxxx
Steps To Reproduce
install nvim-java
Expected Behavior
install success
The text was updated successfully, but these errors were encountered: