updated readme (#1000)

This commit is contained in:
Abouzar Parvan 2021-07-17 18:00:36 +04:30 committed by GitHub
parent dd5de4217d
commit f5991a9d1b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 7 deletions

View file

@ -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

View file

@ -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

View file

@ -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