config.example-no-ts.lua 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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 the key-mappings provided by LunarVim for any mode, or leave it empty to keep them
  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. -- if you just want to augment the existing ones then use the utility function
  19. -- require("utils").add_keymap_insert_mode({ silent = true }, {
  20. -- { "<C-s>", ":w<cr>" },
  21. -- { "<C-c>", "<ESC>" },
  22. -- })
  23. -- you can also use the native vim way directly
  24. -- vim.api.nvim_set_keymap("i", "<C-Space>", "compe#complete()", { noremap = true, silent = true, expr = true })
  25. -- TODO: User Config for predefined plugins
  26. -- After changing plugin config exit and reopen LunarVim, Run :PackerInstall :PackerCompile
  27. lvim.builtin.dashboard.active = true
  28. lvim.builtin.terminal.active = true
  29. lvim.builtin.nvimtree.side = "left"
  30. lvim.builtin.nvimtree.show_icons.git = 0
  31. -- if you don't want all the parsers change this to a table of the ones you want
  32. lvim.builtin.treesitter.ensure_installed = {}
  33. lvim.builtin.treesitter.ignore_install = { "haskell" }
  34. lvim.builtin.treesitter.highlight.enabled = true
  35. -- generic LSP settings
  36. -- you can set a custom on_attach function that will be used for all the language servers
  37. -- See <https://github.com/neovim/nvim-lspconfig#keybindings-and-completion>
  38. -- lvim.lsp.on_attach_callback = function(client, bufnr)
  39. -- local function buf_set_option(...)
  40. -- vim.api.nvim_buf_set_option(bufnr, ...)
  41. -- end
  42. -- --Enable completion triggered by <c-x><c-o>
  43. -- buf_set_option("omnifunc", "v:lua.vim.lsp.omnifunc")
  44. -- end
  45. -- set a formatter if you want to override the default lsp one (if it exists)
  46. -- lvim.lang.python.formatters = {
  47. -- {
  48. -- exe = "black",
  49. -- args = {}
  50. -- }
  51. -- }
  52. -- set an additional linter
  53. -- lvim.lang.python.linters = {
  54. -- {
  55. -- exe = "flake8",
  56. -- args = {}
  57. -- }
  58. -- }
  59. -- Additional Plugins
  60. -- lvim.plugins = {
  61. -- {"folke/tokyonight.nvim"}, {
  62. -- "ray-x/lsp_signature.nvim",
  63. -- config = function() require"lsp_signature".on_attach() end,
  64. -- event = "InsertEnter"
  65. -- }
  66. -- }
  67. -- Autocommands (https://neovim.io/doc/user/autocmd.html)
  68. -- lvim.autocommands.custom_groups = {
  69. -- { "BufWinEnter", "*.lua", "setlocal ts=8 sw=8" },
  70. -- }
  71. -- Additional Leader bindings for WhichKey