lv-config.example-no-ts.lua 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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.auto_close_tree = 0
  15. O.default_options.wrap = true
  16. O.default_options.timeoutlen = 100
  17. O.leader_key = " "
  18. -- TODO: User Config for predefined plugins
  19. -- After changing plugin config exit and reopen LunarVim, Run :PackerInstall :PackerCompile
  20. O.plugin.dashboard.active = true
  21. O.plugin.terminal.active = true
  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 = {}
  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. -- To change default formatter from yapf to black
  34. -- O.lang.python.formatter.exe = "black"
  35. -- O.lang.python.formatter.args = {"-"}
  36. -- To change enabled linters
  37. -- https://github.com/mfussenegger/nvim-lint#available-linters
  38. -- O.lang.python.linters = { "flake8", "pylint", "mypy", ... }
  39. -- go
  40. -- To change default formatter from gofmt to goimports
  41. -- O.lang.formatter.go.exe = "goimports"
  42. -- javascript
  43. O.lang.tsserver.linter = nil
  44. -- latex
  45. -- O.lang.latex.auto_save = false
  46. -- O.lang.latex.ignore_errors = { }
  47. -- Additional Plugins
  48. -- O.user_plugins = {
  49. -- {"folke/tokyonight.nvim"}, {
  50. -- "ray-x/lsp_signature.nvim",
  51. -- config = function() require"lsp_signature".on_attach() end,
  52. -- event = "InsertEnter"
  53. -- }
  54. -- }
  55. -- Autocommands (https://neovim.io/doc/user/autocmd.html)
  56. -- O.user_autocommands = {{ "BufWinEnter", "*", "echo \"hi again\""}}
  57. -- Additional Leader bindings for WhichKey
  58. -- O.user_which_key = {
  59. -- A = {
  60. -- name = "+Custom Leader Keys",
  61. -- a = { "<cmd>echo 'first custom command'<cr>", "Description for a" },
  62. -- b = { "<cmd>echo 'second custom command'<cr>", "Description for b" },
  63. -- },
  64. -- }