forked from IBM/mcp-context-forge
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.nvim.lua
More file actions
35 lines (31 loc) · 949 Bytes
/
.nvim.lua
File metadata and controls
35 lines (31 loc) · 949 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
-- Set colorcolumn to 200 for Python files only
vim.api.nvim_create_autocmd("FileType", {
pattern = "python",
callback = function()
vim.opt_local.colorcolumn = "200"
end,
})
-- Set up for line formatting .md files to a 120-character limit
vim.api.nvim_create_autocmd("FileType", {
pattern = "markdown",
callback = function()
vim.opt_local.colorcolumn = "120"
vim.opt_local.textwidth = 120
end,
})
--
-- Project settings for ALE (Asynchronous Lint Engine)
-- ALE is available at https://github.com/dense-analysis/ale
--
vim.g.ale_linters = {
make = {},
python = { "mypy", "ruff", "flake8", "pylint" },
markdown = { "markdownlint" },
}
vim.g.ale_python_auto_uv = 1
vim.g.ale_python_mypy_options = "--no-pretty"
vim.g.ale_python_ruff_options = "--extend-select I"
vim.g.ale_markdown_markdownlint_executable = "markdownlint-cli2"
vim.g.ale_fixers = {
python = { "ruff", "black" },
}