Skip to content

Commit a4c3d48

Browse files
committedOct 28, 2022
fix(health): added info on how to disable overwritten by other plugins
1 parent 7e2e449 commit a4c3d48

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed
 

‎lua/noice/health.lua

+6-3
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,8 @@ function M.check(opts)
120120
if Config.is_running() then
121121
if Config.options.notify.enabled then
122122
if vim.notify ~= require("noice.source.notify").notify then
123-
log.error("`vim.notify` has been overwritten by another plugin?")
123+
log.error([[`vim.notify` has been overwritten by another plugin?
124+
Either disable the other plugin or set `config.notify.enabled = false`]])
124125
else
125126
log.ok("`vim.notify` is set to **Noice**")
126127
end
@@ -132,7 +133,8 @@ function M.check(opts)
132133

133134
if Config.options.lsp.hover.enabled then
134135
if vim.lsp.handlers["textDocument/hover"] ~= Lsp.hover then
135-
log.error([[`vim.lsp.handlers["textDocument/hover"]` has been overwritten by another plugin?]])
136+
log.error([[`vim.lsp.handlers["textDocument/hover"]` has been overwritten by another plugin?
137+
Disable the other plugin or set `config.lsp.hover.enabled = false`]])
136138
else
137139
log.ok([[`vim.lsp.handlers["textDocument/hover"]` is handled by **Noice**]])
138140
end
@@ -144,7 +146,8 @@ function M.check(opts)
144146

145147
if Config.options.lsp.signature.enabled then
146148
if vim.lsp.handlers["textDocument/signatureHelp"] ~= Lsp.signature then
147-
log.error([[`vim.lsp.handlers["textDocument/signatureHelp"]` has been overwritten by another plugin?]])
149+
log.error([[`vim.lsp.handlers["textDocument/signatureHelp"]` has been overwritten by another plugin?
150+
Either disable the plugin, or set `config.lsp.signature.enabled = false`]])
148151
else
149152
log.ok([[`vim.lsp.handlers["textDocument/signatureHelp"]` is handled by **Noice**]])
150153
end

0 commit comments

Comments
 (0)