Files
nvim-config/lua/ale.lua
T
guy176251 6302d90f4a modified: init.lua
modified:   lua/ale.lua
	modified:   lua/config.lua
	renamed:    lua/nvim_lsp.lua -> lua/lsp_setup.lua
2021-11-01 13:25:25 -05:00

47 lines
1.3 KiB
Lua

local g = vim.g
-- neds to be before plugin startup
g.ale_completion_enabled = false
g.ale_linters_explicit = true
g.ale_fix_on_save = true
g.ale_fixers = {
c = {"clang-format"},
cpp = {"clang-format"},
sh = {"shfmt"},
python = {"black"},
lua = {"luafmt"},
css = {"prettier"},
scss = {"prettier"},
html = {"prettier"}
-- using null-ls for formatting js/ts
--javascript = {"prettier"},
--typescript = {"prettier"},
--javascriptreact = {"prettier"},
--typescriptreact = {"prettier"}
}
g.ale_linters = {
sh = {"bashate"}
--python = {"flake8"},
--cpp = {"g++"},
--html = {"tidy"},
--css = {"stylelint"}
}
g.ale_lint_on_text_changed = "normal"
--g.ale_lint_on_text_changed = "never"
g.ale_lint_on_enter = true
g.ale_lint_on_insert_leave = true
g.ale_lint_on_filetype_changed = false
g.ale_lint_on_save = false
--local flake8_ignore_args = "--ignore=E501,E265,E402,E262,E261,E241,E266"
--g.ale_python_flake8_options = flake8_ignore_args
--g.ale_python_autopep8_options = flake8_ignore_args
--g.ale_lua_luafmt_options = ""
--g.ale_javascript_prettier_options = "--print-width 120 --tab-width 4"
g.ale_c_clangformat_options = '-style="{IndentWidth: 4,TabWidth: 4}"'
g.ale_sh_bashate_options = "-i E006,E042,E003"
--g.ale_sh_shfmt_options = "-kp -s"