|
|
|
@ -1,15 +1,27 @@
|
|
|
|
|
-- General configuration |
|
|
|
|
vim.g.ale_linters = { |
|
|
|
|
python = {'black', 'flake8'}, |
|
|
|
|
c: {'clang-format'}, |
|
|
|
|
cpp: {'clang-format'} |
|
|
|
|
python = {'black', 'flake8'}, |
|
|
|
|
c = {'clang-format'}, |
|
|
|
|
cpp = {'clang-format'} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
vim.g.ale_fixers = { |
|
|
|
|
['*'] = {'remove_trailing_lines', 'trim_whitespace'} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
let g:ale_fix_on_save = 1 |
|
|
|
|
vim.g.ale_fix_on_save = 1 |
|
|
|
|
|
|
|
|
|
-- LSP Configurations |
|
|
|
|
require("mason").setup({ |
|
|
|
|
ui = { |
|
|
|
|
icons = { |
|
|
|
|
package_installed = "✓", |
|
|
|
|
package_pending = "➜", |
|
|
|
|
package_uninstalled = "✗" |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
require("mason-lspconfig").setup() |
|
|
|
|
|
|
|
|
|
-- Treesitter config. |
|
|
|
|
require'nvim-treesitter.configs'.setup { |
|
|
|
@ -18,6 +30,7 @@ require'nvim-treesitter.configs'.setup {
|
|
|
|
|
"lua", |
|
|
|
|
"markdown", |
|
|
|
|
"python", |
|
|
|
|
"rust", |
|
|
|
|
"query", |
|
|
|
|
"vim", |
|
|
|
|
"vimdoc", |
|
|
|
|