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