Seperating configuration into different lua modules
This commit is contained in:
30
lua/linterconfiguration.lua
Normal file
30
lua/linterconfiguration.lua
Normal file
@@ -0,0 +1,30 @@
|
||||
-- Ale configuration
|
||||
vim.g.ale_linters_explicit = 0
|
||||
local linters = {
|
||||
python = { "pylint" },
|
||||
vim = { "vint" },
|
||||
cpp = { "clang" },
|
||||
c = { "clang" },
|
||||
markdown = { "languagetool" },
|
||||
latex = { "proselint" },
|
||||
tex = { "proselint" },
|
||||
plaintex = { "proselint" },
|
||||
ada = { "gnat", "gcc", "cspell" },
|
||||
}
|
||||
|
||||
vim.g.ale_linters = linters
|
||||
vim.g.ale_fix_on_save = 1
|
||||
-- vim.g.ale_ada_gpr_project_file = "default.gpr"
|
||||
vim.g.ale_fixers = {
|
||||
ada = { "gnatpp" },
|
||||
asm = { "gcc" },
|
||||
bash = { "bashate" },
|
||||
c = { "astyle" },
|
||||
latex = { "texlab", "textlint" },
|
||||
lua = { "stylua" },
|
||||
markdown = { "prettier", "pandoc" },
|
||||
python = { "yapf" },
|
||||
}
|
||||
|
||||
vim.keymap.set("n", "<leader>lf", ":ALEFix<CR>")
|
||||
vim.keymap.set("n", "<leader>ld", ":ALEDetail<CR>")
|
||||
Reference in New Issue
Block a user