From f5991a9d1b480fcf38e5fe622a154f93ba53a731 Mon Sep 17 00:00:00 2001 From: Abouzar Parvan Date: Sat, 17 Jul 2021 18:00:36 +0430 Subject: updated readme (#1000) --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 0753348a..e11e9267 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,8 @@ Example: -- THESE ARE EXAMPLE CONFIGS FEEL FREE TO CHANGE TO WHATEVER YOU WANT -- general --- O.default_options.wrap = true -- wrap long lines +-- O.format_on_save = false -- to disbale formatting on save +-- O.lint_on_save = false -- to disable formatting on save O.completion.autocomplete = true O.default_options.relativenumber = true O.colorscheme = 'spacegray' @@ -87,12 +88,14 @@ O.lang.tsserver.linter = nil O.lang.tsserver.autoformat = true -- python -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 -- 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 -- cgit v1.2.3