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" ]; rust = [ "rustfmt" ];
sh = [ "shfmt" ]; sh = [ "shfmt" ];
terraform = if config.terraform then [ "terraform_fmt" ] else [ ]; terraform = if config.terraform then [ "terraform_fmt" ] else [ ];
hcl = if config.terraform then [ "terraform_fmt" ] else [ ]; hcl = [ "hcl" ];
}; };
formatters = { formatters = {
lua.command = "${pkgs.stylua}/bin/stylua"; lua.command = "${pkgs.stylua}/bin/stylua";
@ -105,6 +105,7 @@
]; ];
}; };
terraform_fmt.command = if config.terraform then "${pkgs.terraform}/bin/terraform" else ""; 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", { vim.api.nvim_create_autocmd("FileType", {
pattern = "markdown", pattern = "markdown",
callback = function() callback = function()
vim.o.formatoptions = vim.o.formatopions + "a" vim.o.formatoptions = vim.o.formatoptions .. "a"
end, end,
}) })