From 17830b7c0d441c080d17621cc95d4a5547cbd659 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Tue, 19 Dec 2023 01:33:35 -0600 Subject: [PATCH] revert: 78640d2 'refactor(nvim): remove `nvim-lint`' --- .../nvim/lua/plugins/configs/nvim-lint.lua | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 dots/.config/nvim/lua/plugins/configs/nvim-lint.lua diff --git a/dots/.config/nvim/lua/plugins/configs/nvim-lint.lua b/dots/.config/nvim/lua/plugins/configs/nvim-lint.lua new file mode 100644 index 00000000..3618db27 --- /dev/null +++ b/dots/.config/nvim/lua/plugins/configs/nvim-lint.lua @@ -0,0 +1,16 @@ +return { + { + "mfussenegger/nvim-lint", + event = { "BufReadPre", "BufNewFile" }, + config = function() + require("lint").linters_by_ft = { + markdown = { "proselint" }, + } + vim.api.nvim_create_autocmd({ "BufWritePost", "BufEnter" }, { + callback = function() + require("lint").try_lint() + end, + }) + end, + }, +}