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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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 = {}
  27. O.treesitter.ignore_install = { "haskell" }
  28. O.treesitter.highlight.enabled = true
  29. -- python
  30. -- O.python.linter = 'flake8'
  31. O.lang.python.isort = true
  32. O.lang.python.diagnostics.virtual_text = true
  33. O.lang.python.analysis.use_library_code_types = true
  34. -- To change default formatter from yapf to black
  35. -- O.lang.python.formatter.exe = "black"
  36. -- O.lang.python.formatter.args = {"-"}
  37. -- To change enabled linters
  38. -- https://github.com/mfussenegger/nvim-lint#available-linters
  39. -- O.lang.python.linters = { "flake8", "pylint", "mypy", ... }
  40. -- go
  41. -- To change default formatter from gofmt to goimports
  42. -- O.lang.formatter.go.exe = "goimports"
  43. -- javascript
  44. O.lang.tsserver.linter = nil
  45. -- latex
  46. -- O.lang.latex.auto_save = false
  47. -- O.lang.latex.ignore_errors = { }
  48. -- Additional Plugins
  49. -- O.user_plugins = {
  50. -- {"folke/tokyonight.nvim"}, {
  51. -- "ray-x/lsp_signature.nvim",
  52. -- config = function() require"lsp_signature".on_attach() end,
  53. -- event = "InsertEnter"
  54. -- }
  55. -- }
  56. -- Autocommands (https://neovim.io/doc/user/autocmd.html)
  57. -- O.user_autocommands = {{ "BufWinEnter", "*", "echo \"hi again\""}}
  58. -- Additional Leader bindings for WhichKey
  59. -- O.user_which_key = {
  60. -- A = {
  61. -- name = "+Custom Leader Keys",
  62. -- a = { "<cmd>echo 'first custom command'<cr>", "Description for a" },
  63. -- b = { "<cmd>echo 'second custom command'<cr>", "Description for b" },
  64. -- },
  65. -- }