From a5b271fec2811944171a833e96533bbf5c90d018 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Sun, 7 Jan 2024 01:32:27 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(nvim):=20add=20typos=20linter?= =?UTF-8?q?=20as=20extra?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/nvim/lazyvim.json | 3 +-- .../nvim/lua/plugins/extras/linting/typos.lua | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 .config/nvim/lua/plugins/extras/linting/typos.lua diff --git a/.config/nvim/lazyvim.json b/.config/nvim/lazyvim.json index a0306112..6c61c4f8 100644 --- a/.config/nvim/lazyvim.json +++ b/.config/nvim/lazyvim.json @@ -91,5 +91,4 @@ "NEWS.md": "2123" }, "version": 2 -} - +} \ No newline at end of file diff --git a/.config/nvim/lua/plugins/extras/linting/typos.lua b/.config/nvim/lua/plugins/extras/linting/typos.lua new file mode 100644 index 00000000..e8170f1c --- /dev/null +++ b/.config/nvim/lua/plugins/extras/linting/typos.lua @@ -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" }, + }, + }, + }, +}