|
|
@ -1,15 +1,27 @@ |
|
|
|
-- General configuration |
|
|
|
-- General configuration |
|
|
|
vim.g.ale_linters = { |
|
|
|
vim.g.ale_linters = { |
|
|
|
python = {'black', 'flake8'}, |
|
|
|
python = {'black', 'flake8'}, |
|
|
|
c: {'clang-format'}, |
|
|
|
c = {'clang-format'}, |
|
|
|
cpp: {'clang-format'} |
|
|
|
cpp = {'clang-format'} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
vim.g.ale_fixers = { |
|
|
|
vim.g.ale_fixers = { |
|
|
|
['*'] = {'remove_trailing_lines', 'trim_whitespace'} |
|
|
|
['*'] = {'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. |
|
|
|
-- Treesitter config. |
|
|
|
require'nvim-treesitter.configs'.setup { |
|
|
|
require'nvim-treesitter.configs'.setup { |
|
|
@ -18,6 +30,7 @@ require'nvim-treesitter.configs'.setup { |
|
|
|
"lua", |
|
|
|
"lua", |
|
|
|
"markdown", |
|
|
|
"markdown", |
|
|
|
"python", |
|
|
|
"python", |
|
|
|
|
|
|
|
"rust", |
|
|
|
"query", |
|
|
|
"query", |
|
|
|
"vim", |
|
|
|
"vim", |
|
|
|
"vimdoc", |
|
|
|
"vimdoc", |
|
|
|