From a06e931c6a7735beb6c1205d1944c72121c69319 Mon Sep 17 00:00:00 2001 From: ray Date: Mon, 5 Jan 2026 20:36:35 +0000 Subject: [PATCH] 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. --- README.md | 6 ++++-- lua/plugins/nvim-lint.lua | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c8881d0..893dfa2 100644 --- a/README.md +++ b/README.md @@ -69,8 +69,10 @@ rm Session.vim # Won't auto-create a new one | Command | Description | | --- | --- | -| `:LintMarkdownEnable` | Enable automatic markdown linting (runs on BufEnter, BufWritePost, InsertLeave) | -| `:LintMarkdownDisable` | Disable automatic markdown linting and clear diagnostics | +| `:MarkdownLintEnable` | Enable automatic markdown linting (runs on BufEnter, BufWritePost, InsertLeave) | +| `:MarkdownLintDisable` | Disable automatic markdown linting and clear diagnostics | + +**Note:** Markdown linting is disabled by default. Spellcheck is always enabled for markdown files. ## `lua/plugins/gitsigns.lua` *(buffer-local when inside a git repo)* diff --git a/lua/plugins/nvim-lint.lua b/lua/plugins/nvim-lint.lua index f68ef49..adcd264 100644 --- a/lua/plugins/nvim-lint.lua +++ b/lua/plugins/nvim-lint.lua @@ -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