settings.lua 936 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. --- HELPERS ---
  2. local cmd = vim.cmd
  3. local opt = vim.opt
  4. --- VIM ONLY COMMANDS ---
  5. cmd "filetype plugin on"
  6. cmd('let &titleold="' .. TERMINAL .. '"')
  7. cmd "set inccommand=split"
  8. cmd "set iskeyword+=-"
  9. cmd "set whichwrap+=<,>,[,],h,l"
  10. if O.transparent_window then
  11. cmd "au ColorScheme * hi Normal ctermbg=none guibg=none"
  12. cmd "au ColorScheme * hi SignColumn ctermbg=none guibg=none"
  13. end
  14. --- SETTINGS ---
  15. opt.shortmess:append "c"
  16. local disabled_built_ins = {
  17. "netrw",
  18. "netrwPlugin",
  19. "netrwSettings",
  20. "netrwFileHandlers",
  21. "gzip",
  22. "zip",
  23. "zipPlugin",
  24. "tar",
  25. "tarPlugin", -- 'man',
  26. "getscript",
  27. "getscriptPlugin",
  28. "vimball",
  29. "vimballPlugin",
  30. "2html_plugin",
  31. "logipat",
  32. "rrhelper",
  33. "spellfile_plugin",
  34. -- 'matchit', 'matchparen', 'shada_plugin',
  35. }
  36. for _, plugin in pairs(disabled_built_ins) do
  37. vim.g["loaded_" .. plugin] = 1
  38. end
  39. for k, v in pairs(O.default_options) do
  40. vim.opt[k] = v
  41. end