feat(neovim): add JSON formatter and set formatexpr for buffers

This commit is contained in:
uttarayan21
2025-10-27 14:33:54 +05:30
parent b8036c00ec
commit e521076313

View File

@@ -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