diff options
-rw-r--r-- | README.md | 7 | ||||
-rw-r--r-- | utils/installer/lv-config.example-no-ts.lua | 2 | ||||
-rw-r--r-- | utils/installer/lv-config.example.lua | 4 |
3 files changed, 6 insertions, 7 deletions
@@ -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 diff --git a/utils/installer/lv-config.example-no-ts.lua b/utils/installer/lv-config.example-no-ts.lua index 4f4cf365..ab544a35 100644 --- a/utils/installer/lv-config.example-no-ts.lua +++ b/utils/installer/lv-config.example-no-ts.lua @@ -33,8 +33,6 @@ O.treesitter.ignore_install = { "haskell" } O.treesitter.highlight.enabled = true -- python --- O.python.linter = 'flake8' -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 diff --git a/utils/installer/lv-config.example.lua b/utils/installer/lv-config.example.lua index b08be95a..1ca556b2 100644 --- a/utils/installer/lv-config.example.lua +++ b/utils/installer/lv-config.example.lua @@ -33,8 +33,6 @@ O.treesitter.ignore_install = { "haskell" } O.treesitter.highlight.enabled = true -- python --- 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 -- To change default formatter from yapf to black @@ -60,7 +58,7 @@ O.lang.tsserver.linter = nil -- scala -- O.lang.scala.metals.active = true --- O.lang.scala.metals.server_version = "0.10.2+33-c6441eb4-SNAPSHOT", +-- O.lang.scala.metals.server_version = "0.10.5", --LaTeX -- Options: https://github.com/latex-lsp/texlab/blob/master/docs/options.md |