nv-settings.lua 923 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. ]] -- general
  8. O.auto_complete = true
  9. O.colorscheme = 'nvcode'
  10. O.auto_close_tree = 0
  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 = true
  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. -- O.lua.formatter = 'lua-format'
  25. O.lua.autoformat = true
  26. -- javascript
  27. O.tsserver.formatter = 'prettier'
  28. O.tsserver.linter = nil
  29. O.tsserver.autoformat = true
  30. -- json
  31. O.json.autoformat = true
  32. -- create custom autocommand field (This would be easy with lua)