lv-settings.lua 1.5 KB

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