From e5210763139b66c740b130c456d3ec306fcf960c Mon Sep 17 00:00:00 2001 From: uttarayan21 Date: Mon, 27 Oct 2025 14:33:54 +0530 Subject: [PATCH] feat(neovim): add JSON formatter and set formatexpr for buffers --- neovim/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/neovim/default.nix b/neovim/default.nix index 68232651..29d2ed09 100644 --- a/neovim/default.nix +++ b/neovim/default.nix @@ -169,6 +169,7 @@ in { end ''; formatters_by_ft = { + json = ["jq"]; d2 = ["d2"]; sql = ["sleek"]; toml = ["taplo"]; @@ -761,6 +762,8 @@ in { }, }) + vim.bo.formatexpr = "v:lua.require'conform'.formatexpr()" + ''; extraPlugins = with pkgs.vimPlugins; [ FTerm-nvim