chore: improve Markdown and codeblock formatting

- Update `prettier.lua` to handle injected code blocks with correct `lang_to_ft` and `lang_to_ext` mappings
- Remove deprecated `markdown_inline` filetype; rely on injected formatting instead
- Update `linting.lua` to match new configuration
- Remove unused formatting and linting tools
This commit is contained in:
2025-10-04 19:22:31 -04:00
parent 3cd44640da
commit 1c52cb4ac0
2 changed files with 128 additions and 37 deletions
+32 -15
View File
@@ -6,20 +6,37 @@ return {
local lint = require('lint')
lint.linters_by_ft = {
-- markdown = { 'markdownlint' },
-- html = { 'htmlhint' },
-- json = { 'jsonlint' },
-- sh = { 'shellharden', 'shellcheck' },
-- bash = { 'shellharden', 'shellcheck' },
-- javascript = { 'eslint_d', 'trivy' },
-- typescript = { 'eslint_d' },
-- python = { 'pylint', 'trivy' },
-- ansible = { 'ansiblelint' },
-- gitcommit = { 'gitlint' },
-- docker = { 'trivy' },
-- yaml = { 'trivy', 'yamllint' },
-- editorconfig = { 'editorconfig-checker' },
-- systemd = { 'systemdlint' },
-- Lua
lua = {},
-- Shell / Bash / Zsh
sh = { 'shellcheck' },
bash = { 'shellcheck' },
-- Markdown
markdown = { 'markdownlint' },
-- markdown_inline = { 'markdownlint' },
-- Web / Frontend
html = { 'htmlhint' },
css = { 'stylelint' },
javascript = { 'eslint_d' },
php = { 'trivy' },
-- YAML
yaml = { 'yamllint' },
-- JSON
json = { 'jsonlint', 'jq' },
-- Python
python = { 'pylint' },
-- Git commit messages
gitcommit = { 'gitlint' },
-- SQL
sql = { 'sqlfluff' },
}
local lint_augroup = vim.api.nvim_create_augroup('lint', { clear = true })
@@ -31,4 +48,4 @@ return {
end,
})
end,
}
}