From 836286798e959fbaa43bd4502561cf85aea537c9 Mon Sep 17 00:00:00 2001 From: Luc Sinet Date: Sat, 17 Jul 2021 00:30:38 +0200 Subject: [Feature] add linter support (#982) --- utils/installer/lv-config.example-no-ts.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'utils/installer/lv-config.example-no-ts.lua') diff --git a/utils/installer/lv-config.example-no-ts.lua b/utils/installer/lv-config.example-no-ts.lua index 7ab4536f..f06189cc 100644 --- a/utils/installer/lv-config.example-no-ts.lua +++ b/utils/installer/lv-config.example-no-ts.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 -- cgit v1.2.3