lv-settings.lua 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. -- File search will ignore this file because it's in your .gitignore. Remove it from .gitignore for it to be listed in file search results
  2. --[[
  3. O is the global options object
  4. Formatters and linters should be
  5. filled in as strings with either
  6. a global executable or a path to
  7. an executable
  8. ]]
  9. -- general
  10. O.auto_complete = true
  11. O.colorscheme = 'lunar'
  12. O.auto_close_tree = 0
  13. O.wrap_lines = false
  14. -- if you don't want all the parsers change this to a table of the ones you want
  15. O.treesitter.ensure_installed = "all"
  16. O.treesitter.ignore_install = {"haskell"}
  17. O.treesitter.highlight.enabled = true
  18. O.clang.diagnostics.virtual_text = false
  19. O.clang.diagnostics.signs = false
  20. O.clang.diagnostics.underline = false
  21. -- python
  22. -- add things like O.python.formatter.yapf.exec_path
  23. -- add things like O.python.linter.flake8.exec_path
  24. -- add things like O.python.formatter.isort.exec_path
  25. O.python.formatter = 'yapf'
  26. -- O.python.linter = 'flake8'
  27. O.python.isort = true
  28. O.python.autoformat = true
  29. O.python.diagnostics.virtual_text = true
  30. O.python.diagnostics.signs = true
  31. O.python.diagnostics.underline = true
  32. -- lua
  33. -- TODO look into stylua
  34. O.lua.formatter = 'lua-format'
  35. -- O.lua.formatter = 'lua-format'
  36. O.lua.autoformat = false
  37. -- javascript
  38. O.tsserver.formatter = 'prettier'
  39. O.tsserver.linter = nil
  40. O.tsserver.autoformat = true
  41. -- json
  42. O.json.autoformat = true
  43. -- ruby
  44. O.ruby.autoformat = true
  45. -- create custom autocommand field (This would be easy with lua)
  46. -- Plugin Settings
  47. -- ==========================================================
  48. -- Dashboard
  49. -- File search will ignore this file because it's in your .gitignore. Remove it from .gitignore for it to be listed in file search results
  50. O.dashboard.enable = true
  51. O.whichkey.enable = true