From 457d4ca244f30eed5615b9c65be3a6187b120ec3 Mon Sep 17 00:00:00 2001 From: Uzaaft <48220549+Uzaaft@users.noreply.github.com> Date: Sun, 11 Jul 2021 10:42:55 +0200 Subject: MISC: Typo fix, and --@usage for python and rust (#795) --- README.md | 2 +- lua/default-config.lua | 2 ++ utils/installer/lv-config.example.lua | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 55b46b4d..41a38f71 100644 --- a/README.md +++ b/README.md @@ -78,7 +78,7 @@ O.lang.tsserver.linter = nil O.lang.tsserver.autoformat = true -- python --- O.python.linter = 'flake8' +-- O.lang.python.linter = 'flake8' O.lang.python.isort = true O.lang.python.diagnostics.virtual_text = true O.lang.python.analysis.use_library_code_types = true diff --git a/lua/default-config.lua b/lua/default-config.lua index e3a613cb..4e5c1175 100644 --- a/lua/default-config.lua +++ b/lua/default-config.lua @@ -184,6 +184,7 @@ O = { }, }, python = { + -- @usage can be flake8 or yapf linter = "", isort = false, diagnostics = { @@ -219,6 +220,7 @@ O = { parameter_hints_prefix = "<-", other_hints_prefix = "=>", -- prefix for all the other hints (type, chaining) }, + -- @usage can be clippy formatter = { exe = "rustfmt", args = { "--emit=stdout" }, diff --git a/utils/installer/lv-config.example.lua b/utils/installer/lv-config.example.lua index 30613b5a..93b69dcd 100644 --- a/utils/installer/lv-config.example.lua +++ b/utils/installer/lv-config.example.lua @@ -32,7 +32,7 @@ O.treesitter.ignore_install = { "haskell" } O.treesitter.highlight.enabled = true -- python --- O.python.linter = 'flake8' +-- O.lang.python.linter = 'flake8' O.lang.python.isort = true O.lang.python.diagnostics.virtual_text = true O.lang.python.analysis.use_library_code_types = true -- cgit v1.2.3