nvim: after/ftplugin/systemd: Lint systemd files on save
This commit is contained in:
parent
6afc6f90dd
commit
9075d7b321
1 changed files with 6 additions and 0 deletions
6
nvim/.config/nvim/after/ftplugin/systemd.lua
Normal file
6
nvim/.config/nvim/after/ftplugin/systemd.lua
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
vim.api.nvim_create_autocmd({ "BufWritePost" }, {
|
||||||
|
buffer = 0,
|
||||||
|
callback = function()
|
||||||
|
require("lint").try_lint()
|
||||||
|
end,
|
||||||
|
})
|
Loading…
Reference in a new issue