reformated readme, added lint and markdown lint, fixed env.sh

This commit is contained in:
2025-06-02 16:59:01 -05:00
parent 354a2abbcd
commit edf3d20945
11 changed files with 95 additions and 18 deletions

22
env/.config/nvim/after/plugin/lint.lua vendored Normal file
View File

@@ -0,0 +1,22 @@
local ok, lint = pcall(require, 'lint')
if ok then
lint.linters_by_ft = {
markdown = { 'markdownlint-cli2' },
}
-- ive spent like 3 hours getting this to work
local markdownlint = lint.linters['markdownlint-cli2']
markdownlint.args = {
"--config", vim.fn.expand("~/.markdownlint.yaml"),
"--",
}
local lint_augroup = vim.api.nvim_create_augroup("lint", { clear = true })
vim.api.nvim_create_autocmd({ "BufEnter", "BufWritePost", "InsertLeave" }, {
group = lint_augroup,
callback = function()
lint.try_lint()
end,
})
end