lv-settings.lua 1.6 KB

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