Skip to content

Commit

Permalink
Ensure json files are always formatted with jq
Browse files Browse the repository at this point in the history
  • Loading branch information
ldonnez committed Sep 19, 2024
1 parent ae5f3bb commit cc37577
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .config/nvim/lua/core/autocmd.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,10 @@ autocmd({ "FileType" }, {
pattern = { "markdown", "gitcommit", "mail" },
command = "setlocal spell spelllang=en,nl",
})

autocmd({ "FileType" }, {
pattern = { "json" },
callback = function()
vim.bo.formatprg = "jq"
end,
})

0 comments on commit cc37577

Please sign in to comment.