Add hcl configuration, test hcl formatter

This commit is contained in:
2023-08-26 21:30:47 +03:00
parent f3a1558cd1
commit 0030230429
4 changed files with 22 additions and 15 deletions

View File

@@ -36,7 +36,7 @@ M.config = function()
autocmd("FileType",
{
pattern = { "c", "ruby", "php", "php3", "perl", "python", "mason", "vim", "sh", "zsh", "scala", "javascript",
"javascriptreact", "typescript", "typescriptreact", "html", "svelte", "css", "nix", "terraform" },
"javascriptreact", "typescript", "typescriptreact", "html", "svelte", "css", "nix", "terraform", "hcl" },
callback = function() require('pwnvim.options').programming() end,
group = filetypes
})

View File

@@ -238,6 +238,7 @@ M.diagnostics = function(groovyls_cmd, groovy_lsp_settings)
formatting.alejandra, -- for nix
formatting.prismaFmt, -- for node prisma db orm
formatting.npm_groovy_lint, -- groovy lsp
formatting.packer, -- hcl formatter
formatting.prettier.with {
-- extra_args = {
@@ -251,14 +252,19 @@ M.diagnostics = function(groovyls_cmd, groovy_lsp_settings)
"json", "jsonc", "yaml", "graphql", "handlebars", "svelte"
},
disabled_filetypes = { "markdown" }
}, diagnostics.eslint_d.with {
args = {
"-f", "json", "--stdin", "--stdin-filename", "$FILENAME"
}
}, -- diagnostics.vale,
codeactions.eslint_d, codeactions.gitsigns, codeactions.statix, -- for nix
diagnostics.statix, -- for nix
null_ls.builtins.hover.dictionary, codeactions.shellcheck,
},
diagnostics.eslint_d.with {
args = {
"-f", "json", "--stdin", "--stdin-filename", "$FILENAME"
}
},
-- diagnostics.vale,
codeactions.eslint_d, -- for nix
codeactions.gitsigns, -- for nix
codeactions.statix, -- for nix
diagnostics.statix, -- for nix
null_ls.builtins.hover.dictionary,
codeactions.shellcheck,
diagnostics.shellcheck,
diagnostics.npm_groovy_lint -- groovy lsp
-- removed formatting.rustfmt since rust_analyzer seems to do the same thing