vim-settings/neovim/lua/plugins/ale.lua

41 lines
979 B
Lua
Raw Normal View History

vim.g["airline#extensions#ale#enabled"] = 1
vim.g.ale_lint_on_enter = 0
2021-09-30 17:59:48 +00:00
vim.g.ale_go_golangci_lint_package = 1
vim.g.ale_disable_lsp = 1
vim.g.ale_linters = {
go = {},
rust = {},
python = {},
2021-12-15 23:32:33 +00:00
lua = {},
2021-09-16 01:13:17 +00:00
-- sh = {'language_server', 'shell', 'shellcheck'},
sh = {},
2021-12-15 17:37:51 +00:00
text = { "proselint", "alex" },
}
vim.g.ale_linter_aliases = {
2021-12-15 17:37:51 +00:00
markdown = { "text" },
}
local pretty_trim_fixer = {
"prettier",
"trim_whitespace",
2021-12-15 17:37:51 +00:00
"remove_trailing_lines",
}
vim.g.ale_fixers = {
2021-12-15 17:37:51 +00:00
["*"] = { "trim_whitespace", "remove_trailing_lines" },
2021-09-16 01:13:17 +00:00
-- go = {"gofmt", "goimports"},
json = pretty_trim_fixer,
2021-09-16 01:13:17 +00:00
-- rust = {"rustfmt"},
--[[
python = {
"black",
"autopep8",
"reorder-python-imports",
"remove_trailing_lines",
"trim_whitespace",
},
--]]
markdown = pretty_trim_fixer,
2021-12-15 17:37:51 +00:00
yaml = { "prettier", "remove_trailing_lines" },
css = pretty_trim_fixer,
javascript = pretty_trim_fixer,
}