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

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