diff options
author | Luc Sinet <[email protected]> | 2021-07-17 00:30:38 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2021-07-16 18:30:38 -0400 |
commit | 836286798e959fbaa43bd4502561cf85aea537c9 (patch) | |
tree | 821f5c459fb056c619aab9f34d802be8776a1cac /utils/installer/lv-config.example.lua | |
parent | fe48ed9ef9de8da8b9fbf7f82f8e0af1758581a4 (diff) |
[Feature] add linter support (#982)
Diffstat (limited to 'utils/installer/lv-config.example.lua')
-rw-r--r-- | utils/installer/lv-config.example.lua | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/utils/installer/lv-config.example.lua b/utils/installer/lv-config.example.lua index 45bf4df8..cbc495e8 100644 --- a/utils/installer/lv-config.example.lua +++ b/utils/installer/lv-config.example.lua @@ -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 |