nvim: Use nvim-lint for linting markdown with vale

This effectively reverts 3ea83c6 and f4ee744.
This commit is contained in:
Sanchayan Maity 2023-01-15 15:45:26 +05:30
parent f9e410494c
commit 6340486b46
Signed by: sanchayanmaity
GPG Key ID: 6F6A0609C12038F3
3 changed files with 4 additions and 2 deletions

View File

@ -2,5 +2,7 @@ vim.bo.textwidth = 80
vim.api.nvim_create_autocmd({ "BufWritePost" }, {
buffer = 0,
command = 'Vale',
callback = function()
require("lint").try_lint()
end,
})

View File

@ -10,6 +10,7 @@ nvim_lint.linters_by_ft = {
haskell = { 'hlint' },
javascript = { 'eslint_d' },
lua = { 'luacheck' },
markdown = { 'vale' },
python = { 'pylint' },
sh = { 'shellcheck' },
typescript = { 'eslint_d' },

View File

@ -87,7 +87,6 @@ local init = function ()
}
use 'andymass/vim-matchup'
use 'christoomey/vim-tmux-navigator'
use 'marcelofern/vale.nvim'
use {
"windwp/nvim-autopairs",
config = function()