lv-config.lua 2.0 KB

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