✨ feat(nvim): add typos linter as extra
This commit is contained in:
parent
612f8095be
commit
a5b271fec2
2 changed files with 18 additions and 2 deletions
|
@ -92,4 +92,3 @@
|
|||
},
|
||||
"version": 2
|
||||
}
|
||||
|
||||
|
|
17
.config/nvim/lua/plugins/extras/linting/typos.lua
Normal file
17
.config/nvim/lua/plugins/extras/linting/typos.lua
Normal file
|
@ -0,0 +1,17 @@
|
|||
return {
|
||||
{
|
||||
"williamboman/mason.nvim",
|
||||
opts = function(_, opts)
|
||||
opts.ensure_installed = opts.ensure_installed or {}
|
||||
vim.list_extend(opts.ensure_installed, { "typos" })
|
||||
end,
|
||||
},
|
||||
{
|
||||
"mfussenegger/nvim-lint",
|
||||
opts = {
|
||||
linters_by_ft = {
|
||||
["*"] = { "typos" },
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
Loading…
Add table
Reference in a new issue