lv-config.example.lua 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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. ]]
  8. -- THESE ARE EXAMPLE CONFIGS FEEL FREE TO CHANGE TO WHATEVER YOU WANT
  9. -- general
  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.bultin_plugin.hop.active = false
  24. O.plugin.dial.active = false
  25. O.plugin.dashboard.active = true
  26. O.plugin.matchup.active = false
  27. O.plugin.colorizer.active = false
  28. O.plugin.numb.active = false
  29. O.plugin.ts_playground.active = false
  30. O.plugin.indent_line.active = false
  31. O.plugin.gitlinker.active = false
  32. O.plugin.zen.active = false
  33. -- dashboard
  34. -- O.dashboard.custom_header = {""}
  35. -- O.dashboard.footer = {""}
  36. -- if you don't want all the parsers change this to a table of the ones you want
  37. O.treesitter.ensure_installed = "all"
  38. O.treesitter.ignore_install = { "haskell" }
  39. O.treesitter.highlight.enabled = true
  40. O.lang.clang.diagnostics.virtual_text = true
  41. O.lang.clang.diagnostics.signs = true
  42. O.lang.clang.diagnostics.underline = true
  43. -- python
  44. -- add things like O.python.formatter.yapf.exec_path
  45. -- add things like O.python.linter.flake8.exec_path
  46. -- add things like O.python.formatter.isort.exec_path
  47. O.lang.python.formatter = "yapf"
  48. -- O.python.linter = 'flake8'
  49. O.lang.python.isort = true
  50. O.lang.python.autoformat = true
  51. O.lang.python.diagnostics.virtual_text = true
  52. O.lang.python.diagnostics.signs = true
  53. O.lang.python.diagnostics.underline = true
  54. O.lang.python.analysis.type_checking = "off"
  55. O.lang.python.analysis.auto_search_paths = true
  56. O.lang.python.analysis.use_library_code_types = true
  57. -- lua
  58. -- TODO look into stylua
  59. O.lang.lua.formatter = "lua-format"
  60. -- O.lua.formatter = 'lua-format'
  61. O.lang.lua.autoformat = false
  62. -- javascript
  63. O.lang.tsserver.formatter = "prettier"
  64. O.lang.tsserver.linter = nil
  65. O.lang.tsserver.autoformat = true
  66. -- json
  67. O.lang.json.autoformat = true
  68. -- ruby
  69. O.lang.ruby.autoformat = true
  70. -- go
  71. O.lang.go.autoformat = true
  72. -- rust
  73. O.lang.rust.autoformat = true
  74. -- clang
  75. O.lang.clang.autoformat = false -- Set to true to enable auto-format in C/C++ files.
  76. -- php
  77. O.lang.php.format.braces = "k&r" -- options: psr12, allman, k&r
  78. O.lang.php.environment.php_version = "7.4"
  79. -- TODO: autoformat seems not to work at the moment
  80. O.lang.php.autoformat = false
  81. O.lang.php.diagnostics.signs = true
  82. O.lang.php.diagnostics.underline = true
  83. O.lang.php.filetypes = { "php", "phtml" }
  84. -- Autocommands (https://neovim.io/doc/user/autocmd.html)
  85. -- O.user_autocommands = {{ "BufWinEnter", "*", "echo \"hi again\""}}
  86. -- Additional Plugins
  87. -- O.custom_plugins = {{"windwp/nvim-ts-autotag"}}