mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-22 07:35:38 +00:00
fix: hcl formatting and markdown errors
This commit is contained in:
parent
8e88d70a52
commit
96d410e1b2
@ -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";
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -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,
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user