nv-settings.lua 744 B

123456789101112131415161718192021222324252627282930313233
  1. --[[
  2. O is the global options object
  3. Formatters and linters should be
  4. filled in as strings with either
  5. a global executable or a path to
  6. an executable
  7. ]]
  8. -- general
  9. O.auto_complete = true
  10. O.colorscheme = 'nvcode'
  11. -- python
  12. -- add things like O.python.formatter.yapf.exec_path
  13. -- add things like O.python.linter.flake8.exec_path
  14. -- add things like O.python.formatter.isort.exec_path
  15. O.python.formatter = 'yapf'
  16. O.python.linter = 'flake8'
  17. O.python.isort = true
  18. O.python.autoformat = false
  19. O.python.diagnostics.virtual_text = true
  20. O.python.diagnostics.signs = true
  21. O.python.diagnostics.underline = true
  22. -- lua
  23. O.lua.formatter = 'lua-format'
  24. -- javascript
  25. O.tsserver.formatter = 'prettier'
  26. O.tsserver.linter = nil
  27. O.tsserver.autoformat = false