2021-09-01 10:03:05 -07:00
|
|
|
vim.g["airline#extensions#ale#enabled"] = 1
|
|
|
|
vim.g.ale_lint_on_enter = 0
|
2021-09-30 10:59:48 -07:00
|
|
|
vim.g.ale_go_golangci_lint_package = 1
|
2021-12-08 15:28:12 -08:00
|
|
|
vim.g.ale_disable_lsp = 1
|
2021-09-01 10:03:05 -07:00
|
|
|
vim.g.ale_linters = {
|
2021-12-08 15:28:12 -08:00
|
|
|
go = {},
|
|
|
|
rust = {},
|
2021-12-08 17:12:33 -08:00
|
|
|
python = {},
|
2021-12-15 15:32:33 -08:00
|
|
|
lua = {},
|
2021-09-15 18:13:17 -07:00
|
|
|
-- sh = {'language_server', 'shell', 'shellcheck'},
|
2021-12-08 15:28:12 -08:00
|
|
|
sh = {},
|
2022-01-10 14:38:24 -08:00
|
|
|
text = {},
|
2022-01-10 14:41:08 -08:00
|
|
|
markdown = {},
|
|
|
|
fish = {},
|
|
|
|
ansible = {},
|
2022-01-10 14:53:16 -08:00
|
|
|
dockerfile = {},
|
2021-09-01 10:03:05 -07:00
|
|
|
}
|
|
|
|
vim.g.ale_linter_aliases = {
|
2021-12-15 09:37:51 -08:00
|
|
|
markdown = { "text" },
|
2021-09-01 10:03:05 -07:00
|
|
|
}
|
|
|
|
local pretty_trim_fixer = {
|
|
|
|
"prettier",
|
|
|
|
"trim_whitespace",
|
2021-12-15 09:37:51 -08:00
|
|
|
"remove_trailing_lines",
|
2021-09-01 10:03:05 -07:00
|
|
|
}
|
|
|
|
vim.g.ale_fixers = {
|
2021-12-15 09:37:51 -08:00
|
|
|
["*"] = { "trim_whitespace", "remove_trailing_lines" },
|
2021-09-15 18:13:17 -07:00
|
|
|
-- go = {"gofmt", "goimports"},
|
2021-09-01 10:03:05 -07:00
|
|
|
json = pretty_trim_fixer,
|
2021-09-15 18:13:17 -07:00
|
|
|
-- rust = {"rustfmt"},
|
2021-09-01 10:03:05 -07:00
|
|
|
--[[
|
|
|
|
python = {
|
|
|
|
"black",
|
|
|
|
"autopep8",
|
|
|
|
"reorder-python-imports",
|
|
|
|
"remove_trailing_lines",
|
|
|
|
"trim_whitespace",
|
|
|
|
},
|
|
|
|
--]]
|
|
|
|
markdown = pretty_trim_fixer,
|
2021-12-15 09:37:51 -08:00
|
|
|
yaml = { "prettier", "remove_trailing_lines" },
|
|
|
|
css = pretty_trim_fixer,
|
2021-09-01 10:03:05 -07:00
|
|
|
javascript = pretty_trim_fixer,
|
|
|
|
}
|