config.example-no-ts.lua 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. -- THESE ARE EXAMPLE CONFIGS FEEL FREE TO CHANGE TO WHATEVER YOU WANT
  2. -- general
  3. lvim.format_on_save = true
  4. lvim.lint_on_save = true
  5. lvim.colorscheme = "spacegray"
  6. -- keymappings
  7. lvim.leader = "space"
  8. -- overwrite/augment the key-mappings provided by LunarVim for any mode, or leave empty to keep the defaults.
  9. -- lvim.keys.normal_mode = {
  10. -- -- Page down/up
  11. -- ["[d"] = { "<PageUp>" },
  12. -- ["]d"] = { "<PageDown>" },
  13. --
  14. -- -- Navigate buffers
  15. -- ["<Tab>"] = { ":bnext<CR>" },
  16. -- ["<S-Tab>"] = { ":bprevious<CR>" },
  17. -- }
  18. -- TODO: User Config for predefined plugins
  19. -- After changing plugin config exit and reopen LunarVim, Run :PackerInstall :PackerCompile
  20. lvim.builtin.dashboard.active = true
  21. lvim.builtin.terminal.active = true
  22. lvim.builtin.nvimtree.side = "left"
  23. lvim.builtin.nvimtree.show_icons.git = 0
  24. -- if you don't want all the parsers change this to a table of the ones you want
  25. lvim.builtin.treesitter.ensure_installed = {}
  26. lvim.builtin.treesitter.ignore_install = { "haskell" }
  27. lvim.builtin.treesitter.highlight.enabled = true
  28. -- generic LSP settings
  29. -- you can set a custom on_attach function that will be used for all the language servers
  30. -- See <https://github.com/neovim/nvim-lspconfig#keybindings-and-completion>
  31. -- lvim.lsp.on_attach_callback = function(client, bufnr)
  32. -- local function buf_set_option(...)
  33. -- vim.api.nvim_buf_set_option(bufnr, ...)
  34. -- end
  35. -- --Enable completion triggered by <c-x><c-o>
  36. -- buf_set_option("omnifunc", "v:lua.vim.lsp.omnifunc")
  37. -- end
  38. -- set a formatter if you want to override the default lsp one (if it exists)
  39. -- lvim.lang.python.formatters = {
  40. -- {
  41. -- exe = "black",
  42. -- args = {}
  43. -- }
  44. -- }
  45. -- set an additional linter
  46. -- lvim.lang.python.linters = {
  47. -- {
  48. -- exe = "flake8",
  49. -- args = {}
  50. -- }
  51. -- }
  52. -- Additional Plugins
  53. -- lvim.plugins = {
  54. -- {"folke/tokyonight.nvim"}, {
  55. -- "ray-x/lsp_signature.nvim",
  56. -- config = function() require"lsp_signature".on_attach() end,
  57. -- event = "InsertEnter"
  58. -- }
  59. -- }
  60. -- Autocommands (https://neovim.io/doc/user/autocmd.html)
  61. -- lvim.autocommands.custom_groups = {
  62. -- { "BufWinEnter", "*.lua", "setlocal ts=8 sw=8" },
  63. -- }
  64. -- Additional Leader bindings for WhichKey