mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-08-04 10:05:37 +02:00
[Feature] add linter support (#982)
This commit is contained in:
parent
fe48ed9ef9
commit
836286798e
15 changed files with 107 additions and 84 deletions
|
@ -11,6 +11,7 @@ an executable
|
|||
-- general
|
||||
|
||||
O.format_on_save = true
|
||||
O.lint_on_save = true
|
||||
O.completion.autocomplete = true
|
||||
O.colorscheme = "spacegray"
|
||||
O.auto_close_tree = 0
|
||||
|
@ -35,12 +36,15 @@ O.treesitter.highlight.enabled = true
|
|||
O.lang.python.isort = true
|
||||
O.lang.python.diagnostics.virtual_text = true
|
||||
O.lang.python.analysis.use_library_code_types = true
|
||||
-- to change default formatter from yapf to black
|
||||
-- To change default formatter from yapf to black
|
||||
-- O.lang.python.formatter.exe = "black"
|
||||
-- O.lang.python.formatter.args = {"-"}
|
||||
-- To change enabled linters
|
||||
-- https://github.com/mfussenegger/nvim-lint#available-linters
|
||||
-- O.lang.python.linters = { "flake8", "pylint", "mypy", ... }
|
||||
|
||||
-- go
|
||||
-- to change default formatter from gofmt to goimports
|
||||
-- To change default formatter from gofmt to goimports
|
||||
-- O.lang.formatter.go.exe = "goimports"
|
||||
|
||||
-- javascript
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue