lv-config.lua 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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. ]] -- THESE ARE EXAMPLE CONFIGS FEEL FREE TO CHANGE TO WHATEVER YOU WANT
  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 = false
  16. O.leader_key = ' '
  17. -- After changing plugin config it is recommended to run :PackerCompile
  18. O.plugin.hop.active = true
  19. O.plugin.dial.active = true
  20. O.plugin.dashboard.active = true
  21. -- dashboard
  22. -- O.dashboard.custom_header = {""}
  23. -- O.dashboard.footer = {""}
  24. -- if you don't want all the parsers change this to a table of the ones you want
  25. O.treesitter.ensure_installed = "all"
  26. O.treesitter.ignore_install = {"haskell"}
  27. O.treesitter.highlight.enabled = true
  28. O.lang.clang.diagnostics.virtual_text = false
  29. O.lang.clang.diagnostics.signs = false
  30. O.lang.clang.diagnostics.underline = false
  31. -- python
  32. -- add things like O.python.formatter.yapf.exec_path
  33. -- add things like O.python.linter.flake8.exec_path
  34. -- add things like O.python.formatter.isort.exec_path
  35. O.lang.python.formatter = 'yapf'
  36. -- O.python.linter = 'flake8'
  37. O.lang.python.active = true
  38. O.lang.python.isort = true
  39. O.lang.python.autoformat = true
  40. O.lang.python.diagnostics.virtual_text = true
  41. O.lang.python.diagnostics.signs = true
  42. O.lang.python.diagnostics.underline = true
  43. O.lang.python.analysis.type_checking = "off"
  44. O.lang.python.analysis.auto_search_paths = true
  45. O.lang.python.analysis.use_library_code_types = true
  46. -- lua
  47. -- TODO look into stylua
  48. O.lang.lua.active = true
  49. O.lang.lua.formatter = 'lua-format'
  50. -- O.lua.formatter = 'lua-format'
  51. O.lang.lua.autoformat = false
  52. -- javascript
  53. O.lang.tsserver.formatter = 'prettier'
  54. O.lang.tsserver.linter = nil
  55. O.lang.tsserver.autoformat = true
  56. -- json
  57. O.lang.json.autoformat = true
  58. -- ruby
  59. O.lang.ruby.autoformat = true
  60. -- go
  61. O.lang.go.autoformat = true
  62. -- create custom autocommand field (This would be easy with lua)
  63. -- Turn off relative_numbers
  64. -- O.relative_number = false
  65. -- Turn off cursorline
  66. -- O.cursorline = false