From 115c91249b07d9a31f7d3e3066517504f2e31df6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Sun, 3 Dec 2023 18:37:13 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(nvim):=20added=20vale=20linter?= =?UTF-8?q?=20for=20markdown?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../nvim/lua/plugins/extras/linting/vale.lua | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .config/nvim/lua/plugins/extras/linting/vale.lua diff --git a/.config/nvim/lua/plugins/extras/linting/vale.lua b/.config/nvim/lua/plugins/extras/linting/vale.lua new file mode 100644 index 00000000..a24dfd75 --- /dev/null +++ b/.config/nvim/lua/plugins/extras/linting/vale.lua @@ -0,0 +1,17 @@ +return { + { + "williamboman/mason.nvim", + opts = function(_, opts) + opts.ensure_installed = opts.ensure_installed or {} + vim.list_extend(opts.ensure_installed, { "vale" }) + end, + }, + { + "mfussenegger/nvim-lint", + opts = function(_, opts) + opts.linters_by_ft.markdown = opts.linters_by_ft.markdown or {} + table.insert(opts.linters_by_ft.markdown, "vale") + return opts + end, + }, +}