|
|
|
@ -1,15 +1,18 @@ |
|
|
|
-- General configuration |
|
|
|
-- General configuration |
|
|
|
vim.g.ale_linters = { |
|
|
|
vim.g.ale_linters = { |
|
|
|
python = {'black', 'flake8'}, |
|
|
|
python = { "flake8" }, |
|
|
|
c = {'clang-format'}, |
|
|
|
c = { "clangd" }, |
|
|
|
cpp = {'clang-format'} |
|
|
|
cpp = { "clangd" }, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
vim.g.ale_fixers = { |
|
|
|
vim.g.ale_fixers = { |
|
|
|
['*'] = {'remove_trailing_lines', 'trim_whitespace'} |
|
|
|
["*"] = { "remove_trailing_lines", "trim_whitespace" }, |
|
|
|
|
|
|
|
python = { "black" }, |
|
|
|
|
|
|
|
c = { "clang-format" }, |
|
|
|
|
|
|
|
cpp = { "clang-format" }, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
vim.g.ale_fix_on_save = 1 |
|
|
|
vim.g.ale_fix_on_save = 0 |
|
|
|
|
|
|
|
|
|
|
|
-- LSP Configurations |
|
|
|
-- LSP Configurations |
|
|
|
require("mason").setup({ |
|
|
|
require("mason").setup({ |
|
|
|
@ -19,7 +22,10 @@ require("mason").setup({ |
|
|
|
package_pending = "➜", |
|
|
|
package_pending = "➜", |
|
|
|
package_uninstalled = "✗" |
|
|
|
package_uninstalled = "✗" |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
ensure_installed = { |
|
|
|
|
|
|
|
"clangd", |
|
|
|
|
|
|
|
}, |
|
|
|
}) |
|
|
|
}) |
|
|
|
require("mason-lspconfig").setup() |
|
|
|
require("mason-lspconfig").setup() |
|
|
|
|
|
|
|
|
|
|
|
|