summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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