From 9075d7b32104fef5ba9baf00129a6af0c7eb3f5c Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Sun, 3 Nov 2024 16:07:40 +0530 Subject: [PATCH] nvim: after/ftplugin/systemd: Lint systemd files on save --- nvim/.config/nvim/after/ftplugin/systemd.lua | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 nvim/.config/nvim/after/ftplugin/systemd.lua diff --git a/nvim/.config/nvim/after/ftplugin/systemd.lua b/nvim/.config/nvim/after/ftplugin/systemd.lua new file mode 100644 index 0000000..6d197de --- /dev/null +++ b/nvim/.config/nvim/after/ftplugin/systemd.lua @@ -0,0 +1,6 @@ +vim.api.nvim_create_autocmd({ "BufWritePost" }, { + buffer = 0, + callback = function() + require("lint").try_lint() + end, +})