Skip to content

Commit 9835559

Browse files
committed
update nvim-lint config
1 parent b76ec79 commit 9835559

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

lua/config/nvim-lint.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ nvim_lint.linters_by_ft = {
44
-- to use vale, install it: `brew install vale`
55
-- configure it via: https://vale.sh/generator, put config in `.vale.ini` in project root.
66
-- to install cspell and typos: `brew install cspell typos-cli`
7-
-- markdown = { "vale", "cspell", "typos" },
7+
markdown = { "typos" },
8+
lua = { "typos" },
89
}
910

10-
vim.api.nvim_create_autocmd({ "InsertLeave" }, {
11+
vim.api.nvim_create_autocmd({ "BufReadPost", "InsertLeave" }, {
1112
callback = function()
1213
-- try_lint without arguments runs the linters defined in `linters_by_ft`
1314
-- for the current filetype

0 commit comments

Comments
 (0)