nv-settings.lua 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. O.wrap_lines = false
  12. O.clang.diagnostics.virtual_text = false
  13. O.clang.diagnostics.signs = false
  14. O.clang.diagnostics.underline = false
  15. -- python
  16. -- add things like O.python.formatter.yapf.exec_path
  17. -- add things like O.python.linter.flake8.exec_path
  18. -- add things like O.python.formatter.isort.exec_path
  19. O.python.formatter = 'yapf'
  20. -- O.python.linter = 'flake8'
  21. O.python.isort = true
  22. O.python.autoformat = true
  23. O.python.diagnostics.virtual_text = true
  24. O.python.diagnostics.signs = true
  25. O.python.diagnostics.underline = true
  26. -- lua
  27. -- TODO look into stylua
  28. O.lua.formatter = 'lua-format'
  29. -- O.lua.formatter = 'lua-format'
  30. O.lua.autoformat = false
  31. -- javascript
  32. O.tsserver.formatter = 'prettier'
  33. O.tsserver.linter = nil
  34. O.tsserver.autoformat = true
  35. -- json
  36. O.json.autoformat = true
  37. -- create custom autocommand field (This would be easy with lua)