Browse Source

MISC: Typo fix, and --@usage for python and rust (#795)

Uzaaft 4 years ago
parent
commit
457d4ca244
3 changed files with 4 additions and 2 deletions
  1. 1 1
      README.md
  2. 2 0
      lua/default-config.lua
  3. 1 1
      utils/installer/lv-config.example.lua

+ 1 - 1
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

+ 2 - 0
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" },

+ 1 - 1
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