fix: hcl formatting and markdown errors

This commit is contained in:
Noah Masur 2024-06-05 16:49:19 -04:00
parent 8e88d70a52
commit 96d410e1b2
No known key found for this signature in database
2 changed files with 3 additions and 2 deletions

View File

@ -88,7 +88,7 @@
rust = [ "rustfmt" ];
sh = [ "shfmt" ];
terraform = if config.terraform then [ "terraform_fmt" ] else [ ];
hcl = if config.terraform then [ "terraform_fmt" ] else [ ];
hcl = [ "hcl" ];
};
formatters = {
lua.command = "${pkgs.stylua}/bin/stylua";
@ -105,6 +105,7 @@
];
};
terraform_fmt.command = if config.terraform then "${pkgs.terraform}/bin/terraform" else "";
hcl.command = "${pkgs.hclfmt}/bin/hclfmt";
};
};

View File

@ -20,7 +20,7 @@ vim.api.nvim_create_autocmd("FileType", {
vim.api.nvim_create_autocmd("FileType", {
pattern = "markdown",
callback = function()
vim.o.formatoptions = vim.o.formatopions + "a"
vim.o.formatoptions = vim.o.formatoptions .. "a"
end,
})