nv-settings.lua 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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 = 'lunar'
  11. O.auto_close_tree = 0
  12. O.wrap_lines = false
  13. O.treesitter.ensure_installed = "all"
  14. O.treesitter.ignore_install = {"haskell"}
  15. O.treesitter.highlight.enabled = true
  16. O.treesitter.playground.enabled = true
  17. O.treesitter.rainbow.enabled = false
  18. O.clang.diagnostics.virtual_text = false
  19. O.clang.diagnostics.signs = false
  20. O.clang.diagnostics.underline = false
  21. -- python
  22. -- add things like O.python.formatter.yapf.exec_path
  23. -- add things like O.python.linter.flake8.exec_path
  24. -- add things like O.python.formatter.isort.exec_path
  25. O.python.formatter = 'yapf'
  26. -- O.python.linter = 'flake8'
  27. O.python.isort = true
  28. O.python.autoformat = true
  29. O.python.diagnostics.virtual_text = true
  30. O.python.diagnostics.signs = true
  31. O.python.diagnostics.underline = true
  32. -- lua
  33. -- TODO look into stylua
  34. O.lua.formatter = 'lua-format'
  35. -- O.lua.formatter = 'lua-format'
  36. O.lua.autoformat = false
  37. -- javascript
  38. O.tsserver.formatter = 'prettier'
  39. O.tsserver.linter = nil
  40. O.tsserver.autoformat = true
  41. -- json
  42. O.json.autoformat = true
  43. -- create custom autocommand field (This would be easy with lua)