init.vim 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. " noah's $VIMINIT
  2. " 1. Essential Neovim 0.11+ fixes and environment setup
  3. lua << EOF
  4. -- Ensure site directory is in rtp for Treesitter
  5. vim.opt.runtimepath:prepend(vim.fn.expand("~/.local/share/nvim/site"))
  6. vim.opt.runtimepath:prepend(vim.fn.stdpath("data") .. "/site")
  7. -- Disable built-in LSP mappings (using native LSP in lsp.lua)
  8. local builtins = { 'grn', 'gra', 'grr', 'gri', 'grt' }
  9. for _, k in ipairs(builtins) do
  10. pcall(vim.keymap.del, 'n', k, { builtin = true })
  11. end
  12. -- Disable built-in commentary to favor tpope/vim-commentary
  13. vim.g.loaded_commentary = 1
  14. EOF
  15. " 2. get basic (set)tings
  16. source $XDG_CONFIG_HOME/nvim/general/basic.vim
  17. " get plugins
  18. source $XDG_CONFIG_HOME/nvim/vim-plug/plugins.vim
  19. " 3. get plugin configs
  20. source $XDG_CONFIG_HOME/nvim/plug-conf/fern.vim
  21. source $XDG_CONFIG_HOME/nvim/plug-conf/emmet.vim
  22. source $XDG_CONFIG_HOME/nvim/plug-conf/ctrlp.vim
  23. source $XDG_CONFIG_HOME/nvim/plug-conf/sneak.vim
  24. source $XDG_CONFIG_HOME/nvim/plug-conf/airline.vim
  25. source $XDG_CONFIG_HOME/nvim/plug-conf/startify.vim
  26. source $XDG_CONFIG_HOME/nvim/plug-conf/wilder.vim
  27. source $XDG_CONFIG_HOME/nvim/plug-conf/vcoolor.vim
  28. source $XDG_CONFIG_HOME/nvim/plug-conf/better-whitespace.vim
  29. source $XDG_CONFIG_HOME/nvim/plug-conf/vimspector.vim
  30. " 4. Lua configurations
  31. lua require 'treesitter'
  32. lua require 'lsp'
  33. lua require 'gitsigns-conf'
  34. lua require 'indent-blankline'
  35. lua require 'telescope'
  36. lua require 'whichkey'
  37. lua require 'colorizer'.setup()
  38. " 5. get theme, keybinds, and autocommands
  39. source $XDG_CONFIG_HOME/nvim/theme/theme.vim
  40. source $XDG_CONFIG_HOME/nvim/keys/bindings.vim
  41. source $XDG_CONFIG_HOME/nvim/keys/tex-macros.vim
  42. source $XDG_CONFIG_HOME/nvim/general/auto.vim
  43. " enable intelligent indentation
  44. filetype plugin indent on