lv-settings.lua 1.5 KB

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