There was an error while loading. Please reload this page.
1 parent b76ec79 commit 9835559Copy full SHA for 9835559
1 file changed
lua/config/nvim-lint.lua
@@ -4,10 +4,11 @@ nvim_lint.linters_by_ft = {
4
-- to use vale, install it: `brew install vale`
5
-- configure it via: https://vale.sh/generator, put config in `.vale.ini` in project root.
6
-- to install cspell and typos: `brew install cspell typos-cli`
7
- -- markdown = { "vale", "cspell", "typos" },
+ markdown = { "typos" },
8
+ lua = { "typos" },
9
}
10
-vim.api.nvim_create_autocmd({ "InsertLeave" }, {
11
+vim.api.nvim_create_autocmd({ "BufReadPost", "InsertLeave" }, {
12
callback = function()
13
-- try_lint without arguments runs the linters defined in `linters_by_ft`
14
-- for the current filetype
0 commit comments