summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUzaaft <[email protected]>2021-07-11 10:42:55 +0200
committerGitHub <[email protected]>2021-07-11 13:12:55 +0430
commit457d4ca244f30eed5615b9c65be3a6187b120ec3 (patch)
tree6130b78350d641f0d447b59b053c70381d6887c6
parentafe079d821f39763aa46990234a0699fb3ba5fc3 (diff)
MISC: Typo fix, and --@usage for python and rust (#795)
-rw-r--r--README.md2
-rw-r--r--lua/default-config.lua2
-rw-r--r--utils/installer/lv-config.example.lua2
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