feat(neovim): add JSON formatter and set formatexpr for buffers
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user