lv-config.example.lua 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. --[[
  2. lvim 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. lvim.format_on_save = true
  11. lvim.lint_on_save = true
  12. lvim.colorscheme = "spacegray"
  13. -- keymappings
  14. lvim.leader = "space"
  15. -- overwrite the key-mappings provided by LunarVim for any mode, or leave it empty to keep them
  16. -- lvim.keys.normal_mode = {
  17. -- Page down/up
  18. -- {'[d', '<PageUp>'},
  19. -- {']d', '<PageDown>'},
  20. --
  21. -- Navigate buffers
  22. -- {'<Tab>', ':bnext<CR>'},
  23. -- {'<S-Tab>', ':bprevious<CR>'},
  24. -- }
  25. -- if you just want to augment the existing ones then use the utility function
  26. -- require("lv-utils").add_keymap_insert_mode({ silent = true }, {
  27. -- { "<C-s>", ":w<cr>" },
  28. -- { "<C-c>", "<ESC>" },
  29. -- })
  30. -- you can also use the native vim way directly
  31. -- vim.api.nvim_set_keymap("i", "<C-Space>", "compe#complete()", { noremap = true, silent = true, expr = true })
  32. -- TODO: User Config for predefined plugins
  33. -- After changing plugin config exit and reopen LunarVim, Run :PackerInstall :PackerCompile
  34. lvim.builtin.dashboard.active = true
  35. lvim.builtin.terminal.active = true
  36. lvim.builtin.nvimtree.side = "left"
  37. lvim.builtin.nvimtree.show_icons.git = 0
  38. -- if you don't want all the parsers change this to a table of the ones you want
  39. lvim.builtin.treesitter.ensure_installed = "maintained"
  40. lvim.builtin.treesitter.ignore_install = { "haskell" }
  41. lvim.builtin.treesitter.highlight.enabled = true
  42. -- generic LSP settings
  43. -- you can set a custom on_attach function that will be used for all the language servers
  44. -- See <https://github.com/neovim/nvim-lspconfig#keybindings-and-completion>
  45. -- lvim.lsp.on_attach_callback = function(client, bufnr)
  46. -- local function buf_set_option(...)
  47. -- vim.api.nvim_buf_set_option(bufnr, ...)
  48. -- end
  49. -- --Enable completion triggered by <c-x><c-o>
  50. -- buf_set_option("omnifunc", "v:lua.vim.lsp.omnifunc")
  51. -- end
  52. -- python
  53. -- Additional Plugins
  54. -- lvim.plugins = {
  55. -- {"folke/tokyonight.nvim"}, {
  56. -- "ray-x/lsp_signature.nvim",
  57. -- config = function() require"lsp_signature".on_attach() end,
  58. -- event = "InsertEnter"
  59. -- }
  60. -- }
  61. -- Autocommands (https://neovim.io/doc/user/autocmd.html)
  62. -- lvim.autocommands.custom_groups = {
  63. -- { "BufWinEnter", "*.lua", "setlocal ts=8 sw=8" },
  64. -- }
  65. -- Additional Leader bindings for WhichKey