mirror of
https://github.com/pratiktri/dotfiles.git
synced 2026-02-04 08:41:43 +05:30
NeoVIM
- Formatting for: added yaml, configured markdown with new configuration file, prettierd configuration updates for bracketsSameLine - Linting: added dockerfile, markdown
This commit is contained in:
@@ -16,9 +16,9 @@ return {
|
||||
css = { { "prettierd", "prettier" } },
|
||||
html = { { "prettierd", "prettier" } },
|
||||
json = { { "prettierd", "prettier" } },
|
||||
yaml = { { "prettierd", "prettier" } },
|
||||
markdown = { { "prettierd", "prettier" } },
|
||||
graphql = { { "prettierd", "prettier" } },
|
||||
yaml = { { "yamlfmt", "prettierd" } },
|
||||
markdown = { { "markdownlint" } },
|
||||
lua = { "stylua" },
|
||||
python = { "black" },
|
||||
sh = { { "shfmt", "shellharden" } },
|
||||
@@ -37,6 +37,19 @@ return {
|
||||
shfmt = {
|
||||
prepend_args = { "-i", "4" },
|
||||
},
|
||||
markdownlint = {
|
||||
prepend_args = {
|
||||
"--config",
|
||||
"~/.config/templates/markdownlint.json",
|
||||
},
|
||||
},
|
||||
yamlfmt = {
|
||||
prepend_args = {
|
||||
"-formatter",
|
||||
"include_document_start=true,retain_line_breaks_single=true",
|
||||
"-gitignore_excludes",
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
@@ -19,9 +19,17 @@ return {
|
||||
javascript = { "codespell" },
|
||||
typescriptreact = { "codespell" },
|
||||
javascriptreact = { "codespell" },
|
||||
dockerfile = { "hadolint" },
|
||||
html = { "codespell" },
|
||||
}
|
||||
|
||||
local markdownlint = lint.linters.markdownlint
|
||||
markdownlint.args = {
|
||||
"--config",
|
||||
"~/.config/templates/markdownlint.json",
|
||||
"--",
|
||||
}
|
||||
|
||||
local lint_augroup = vim.api.nvim_create_augroup("lint", { clear = true })
|
||||
|
||||
vim.api.nvim_create_autocmd({ "BufEnter", "BufWritePost", "InsertLeave" }, {
|
||||
|
||||
Reference in New Issue
Block a user