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" }, { vim.api.nvim_create_autocmd({ "BufWritePost" }, {
buffer = 0, buffer = 0,
command = 'Vale', callback = function()
require("lint").try_lint()
end,
}) })

View file

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

View file

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