nv-settings.lua 1.3 KB

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