We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15799cc commit 9c5450eCopy full SHA for 9c5450e
lua/rulebook/formatter-actions.lua
@@ -8,12 +8,14 @@ function M.suppress()
8
local indent = vim.api.nvim_get_current_line():match("^%s*")
9
10
local ftConfig = require("rulebook.config").config.suppressFormatter[ft]
11
+ if not ftConfig then
12
+ u.notify(("No formatter suppression configured for %q."):format(ft), "warn")
13
+ return
14
+ end
15
local coverage = mode == "n" and "ignoreBlock" or "ignoreRange"
16
local suppressText = ftConfig[coverage]
-
- -- GUARD
17
if not suppressText then
- u.notify(("No suppress comment %q found for %q."):format(coverage, ft))
18
+ u.notify(("No %q configured for %q."):format(coverage, ft), "warn")
19
return
20
end
21
0 commit comments