lv-config.example.lua 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. --[[
  2. O is the global options object
  3. 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.format_on_save = true
  10. O.auto_complete = true
  11. O.colorscheme = "spacegray"
  12. O.auto_close_tree = 0
  13. O.wrap_lines = false
  14. O.timeoutlen = 100
  15. O.document_highlight = true
  16. O.leader_key = " "
  17. O.ignore_case = true
  18. O.smart_case = true
  19. O.lushmode = false
  20. O.transparent_window = false
  21. -- TODO User Config for predefined plugins
  22. -- After changing plugin config exit and reopen LunarVim, Run :PackerInstall :PackerCompile
  23. O.plugin.dashboard.active = true
  24. O.plugin.colorizer.active = false
  25. O.plugin.ts_playground.active = false
  26. O.plugin.indent_line.active = false
  27. O.plugin.zen.active = false
  28. -- dashboard
  29. -- O.dashboard.custom_header = {""}
  30. -- O.dashboard.footer = {""}
  31. -- if you don't want all the parsers change this to a table of the ones you want
  32. O.treesitter.ensure_installed = "all"
  33. O.treesitter.ignore_install = {"haskell"}
  34. O.treesitter.highlight.enabled = true
  35. O.lang.clang.diagnostics.virtual_text = true
  36. O.lang.clang.diagnostics.signs = true
  37. O.lang.clang.diagnostics.underline = true
  38. -- python
  39. -- add things like O.python.linter.flake8.exec_path
  40. -- O.python.linter = 'flake8'
  41. O.lang.python.isort = true
  42. O.lang.python.diagnostics.virtual_text = true
  43. O.lang.python.diagnostics.signs = true
  44. O.lang.python.diagnostics.underline = true
  45. O.lang.python.analysis.type_checking = "off"
  46. O.lang.python.analysis.auto_search_paths = true
  47. O.lang.python.analysis.use_library_code_types = true
  48. -- javascript
  49. O.lang.tsserver.linter = nil
  50. -- php
  51. O.lang.php.environment.php_version = "7.4"
  52. O.lang.php.diagnostics.signs = true
  53. O.lang.php.diagnostics.underline = true
  54. O.lang.php.filetypes = {"php", "phtml"}
  55. O.lang.php.format = {
  56. format = {
  57. default = "psr12"
  58. }
  59. }
  60. -- Autocommands (https://neovim.io/doc/user/autocmd.html)
  61. -- O.user_autocommands = {{ "BufWinEnter", "*", "echo \"hi again\""}}
  62. -- Additional Plugins
  63. -- O.custom_plugins = {{"windwp/nvim-ts-autotag"}}