lv-config.example.lua 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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.lint_on_save = true
  12. O.completion.autocomplete = true
  13. O.colorscheme = "spacegray"
  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.terminal.active = true
  21. O.plugin.zen.active = false
  22. O.plugin.zen.window.height = 0.90
  23. O.plugin.nvimtree.side = "left"
  24. O.plugin.nvimtree.show_icons.git = 0
  25. -- if you don't want all the parsers change this to a table of the ones you want
  26. O.treesitter.ensure_installed = "maintained"
  27. O.treesitter.ignore_install = { "haskell" }
  28. O.treesitter.highlight.enabled = true
  29. -- python
  30. O.lang.python.diagnostics.virtual_text = true
  31. O.lang.python.analysis.use_library_code_types = true
  32. -- To change default formatter from yapf to black
  33. -- O.lang.python.formatter.exe = "black"
  34. -- O.lang.python.formatter.args = {"-"}
  35. -- To change enabled linters
  36. -- https://github.com/mfussenegger/nvim-lint#available-linters
  37. -- O.lang.python.linters = { "flake8", "pylint", "mypy", ... }
  38. -- go
  39. -- To change default formatter from gofmt to goimports
  40. -- O.lang.formatter.go.exe = "goimports"
  41. -- javascript
  42. O.lang.tsserver.linter = nil
  43. -- rust
  44. -- O.lang.rust.rust_tools = true
  45. -- O.lang.rust.formatter = {
  46. -- exe = "rustfmt",
  47. -- args = {"--emit=stdout", "--edition=2018"},
  48. -- }
  49. -- scala
  50. -- O.lang.scala.metals.active = true
  51. -- O.lang.scala.metals.server_version = "0.10.5",
  52. --LaTeX
  53. -- Options: https://github.com/latex-lsp/texlab/blob/master/docs/options.md
  54. O.lang.latex.active = true
  55. O.lang.latex.aux_directory = "."
  56. O.lang.latex.bibtex_formatter = "texlab"
  57. O.lang.latex.build.args = { "-pdf", "-interaction=nonstopmode", "-synctex=1", "%f" }
  58. O.lang.latex.build.executable = "latexmk"
  59. O.lang.latex.build.forward_search_after = false
  60. O.lang.latex.build.on_save = false
  61. O.lang.latex.chktex.on_edit = false
  62. O.lang.latex.chktex.on_open_and_save = false
  63. O.lang.latex.diagnostics_delay = 300
  64. O.lang.latex.formatter_line_length = 80
  65. O.lang.latex.forward_search.executable = "zathura"
  66. O.lang.latex.latex_formatter = "latexindent"
  67. O.lang.latex.latexindent.modify_line_breaks = false
  68. -- O.lang.latex.auto_save = false
  69. -- O.lang.latex.ignore_errors = { }
  70. -- Additional Plugins
  71. -- O.user_plugins = {
  72. -- {"folke/tokyonight.nvim"}, {
  73. -- "ray-x/lsp_signature.nvim",
  74. -- config = function() require"lsp_signature".on_attach() end,
  75. -- event = "InsertEnter"
  76. -- }
  77. -- }
  78. -- Autocommands (https://neovim.io/doc/user/autocmd.html)
  79. -- O.user_autocommands = {{ "BufWinEnter", "*", "echo \"hi again\""}}
  80. -- Additional Leader bindings for WhichKey
  81. -- O.user_which_key = {
  82. -- A = {
  83. -- name = "+Custom Leader Keys",
  84. -- a = { "<cmd>echo 'first custom command'<cr>", "Description for a" },
  85. -- b = { "<cmd>echo 'second custom command'<cr>", "Description for b" },
  86. -- },
  87. -- }