Closed jnpngshiii closed 1 year ago
the error message here is quite clear either you disable the handlers in noice (which you don't want afaict) or they are overwritten by another plugin like lsp-signature or lsp-saga or sth so the right way to fix this would be to just figure out which plugin overwrites the handlers and disable it non of this weird stuff with the double and different setup you do should be necessary
@jinpeng-s you can just do:
-- override markdown rendering so that **cmp** and other plugins use **Treesitter**
override = {
["vim.lsp.util.convert_input_to_markdown_lines"] = true,
["vim.lsp.util.stylize_markdown"] = true,
["cmp.entry.get_documentation"] = true,
},
signature = {
enabled = false,
},
hover = {
enabled = false,
},
},
Alternatively, if you don't want to disable these from noice as @max397574 pointed out, you can try to mess around with these functions in .config/nvim/lua/core/mappings.lua
:
["K"] = {
function()
vim.lsp.buf.hover()
end,
"LSP hover",
},
["<leader>ls"] = {
function()
vim.lsp.buf.signature_help()
end,
"LSP signature help",
},
Q
If you use
NvChad
and add the following code tolua/custom/plugins.lua
to usenoice.nvim
:Then run
checkhealth
and you may get the following:A
After many days of googling, I found the solution.
First, add the following configuration in
lua/custom/plugins.lua
:Then, add the following configuration in
lua/plugins/configs/lspconfig.lua
, beforerequire("lspconfig").lua_ls.setup
:That's it, and you'll get a healthy neovim!
Other issues
lua/plugins/configs/lspconfig.lua
means that every time you update NvChad you need to manually merge some diffs.Just to help those who may still be struggling with their sub-healthy neovim. Now I'm going to close this issue~