lv-settings.lua 1.7 KB

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