lv-settings.lua 1.6 KB

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