nv-settings.lua 767 B

1234567891011121314151617181920212223242526272829303132333435
  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. O.auto_close_tree = 0
  12. -- python
  13. -- add things like O.python.formatter.yapf.exec_path
  14. -- add things like O.python.linter.flake8.exec_path
  15. -- add things like O.python.formatter.isort.exec_path
  16. O.python.formatter = 'yapf'
  17. O.python.linter = 'flake8'
  18. O.python.isort = true
  19. O.python.autoformat = false
  20. O.python.diagnostics.virtual_text = true
  21. O.python.diagnostics.signs = true
  22. O.python.diagnostics.underline = true
  23. -- lua
  24. O.lua.formatter = 'lua-format'
  25. -- javascript
  26. O.tsserver.formatter = 'prettier'
  27. O.tsserver.linter = nil
  28. O.tsserver.autoformat = false