nvim: add json formatter

dev-docs
Moritz Böhme 2023-03-02 09:14:27 +01:00
parent e2d4143c2a
commit 05631f016d
Signed by: moritz
GPG Key ID: 970C6E89EB0547A9
2 changed files with 4 additions and 4 deletions

View File

@ -40,6 +40,7 @@ in
alejandra
black
isort
jq
nil
nixpkgs-fmt
rustfmt

View File

@ -193,11 +193,10 @@ require("formatter").setup({
log_level = vim.log.levels.WARN,
-- All formatter configurations are opt-in
filetype = {
-- Formatter configurations for filetype "lua" go here
-- and will be executed in order
json = {
require("formatter.filetypes.json").jq,
},
lua = {
-- "formatter.filetypes.lua" defines default configurations for the
-- "lua" filetype
require("formatter.filetypes.lua").stylua,
},
nix = {