nvim: Use nvim-lint for linting markdown with vale
This effectively reverts3ea83c6
andf4ee744
.
This commit is contained in:
parent
f9e410494c
commit
6340486b46
3 changed files with 4 additions and 2 deletions
|
@ -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,
|
||||||
})
|
})
|
||||||
|
|
|
@ -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' },
|
||||||
|
|
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue