Update markdown linting commands and documentation
Renamed commands for enabling and disabling markdown linting to `MarkdownLintEnable` and `MarkdownLintDisable`. Updated the README to reflect these changes and added a note about markdown linting being disabled by default.
This commit is contained in:
parent
7a98fa5b5c
commit
a06e931c6a
2 changed files with 6 additions and 4 deletions
|
|
@ -80,7 +80,7 @@ return {
|
|||
})
|
||||
|
||||
-- Commands to enable/disable automatic markdown linting
|
||||
vim.api.nvim_create_user_command("LintMarkdownEnable", function()
|
||||
vim.api.nvim_create_user_command("MarkdownLintEnable", function()
|
||||
lint.linters_by_ft.markdown = { "markdownlint" }
|
||||
vim.notify("Markdown linting enabled (automatic)", vim.log.levels.INFO)
|
||||
-- Lint immediately
|
||||
|
|
@ -89,7 +89,7 @@ return {
|
|||
end
|
||||
end, { desc = "Enable automatic markdown linting" })
|
||||
|
||||
vim.api.nvim_create_user_command("LintMarkdownDisable", function()
|
||||
vim.api.nvim_create_user_command("MarkdownLintDisable", function()
|
||||
lint.linters_by_ft.markdown = nil
|
||||
vim.notify("Markdown linting disabled", vim.log.levels.INFO)
|
||||
-- Clear existing diagnostics for markdown buffers
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue