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