lv-config.example.lua 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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.completion.autocomplete = true
  12. O.colorscheme = "spacegray"
  13. O.auto_close_tree = 0
  14. O.default_options.wrap = true
  15. O.default_options.timeoutlen = 100
  16. O.leader_key = " "
  17. -- TODO User Config for predefined plugins
  18. -- After changing plugin config exit and reopen LunarVim, Run :PackerInstall :PackerCompile
  19. O.plugin.dashboard.active = true
  20. O.plugin.floatterm.active = true
  21. O.plugin.indent_line.active = false
  22. O.plugin.zen.active = false
  23. O.plugin.zen.window.height = 0.90
  24. -- if you don't want all the parsers change this to a table of the ones you want
  25. O.treesitter.ensure_installed = "maintained"
  26. O.treesitter.ignore_install = { "haskell" }
  27. O.treesitter.highlight.enabled = true
  28. -- python
  29. -- O.python.linter = 'flake8'
  30. O.lang.python.isort = true
  31. O.lang.python.diagnostics.virtual_text = true
  32. O.lang.python.analysis.use_library_code_types = true
  33. -- javascript
  34. O.lang.tsserver.linter = nil
  35. -- Additional Plugins
  36. -- O.user_plugins = {
  37. -- {"folke/tokyonight.nvim"}, {
  38. -- "ray-x/lsp_signature.nvim",
  39. -- config = function() require"lsp_signature".on_attach() end,
  40. -- event = "InsertEnter"
  41. -- }
  42. -- }
  43. -- Autocommands (https://neovim.io/doc/user/autocmd.html)
  44. -- O.user_autocommands = {{ "BufWinEnter", "*", "echo \"hi again\""}}
  45. -- Additional Leader bindings for WhichKey
  46. -- O.user_which_key = {
  47. -- A = {
  48. -- name = "+Custom Leader Keys",
  49. -- a = { "<cmd>echo 'first custom command'<cr>", "Description for a" },
  50. -- b = { "<cmd>echo 'second custom command'<cr>", "Description for b" },
  51. -- },
  52. -- }