options.lua 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. local opt = vim.opt
  2. -- Set vim paths
  3. opt.undodir = vim.fn.expand("~/.cache/vim/undo")
  4. -- Make :find recursive
  5. opt.path:append("**")
  6. opt.wildignore:append("*/node_modules/*")
  7. opt.wildignore:append("*/__pycache__/*")
  8. -- Display all files for tab completion
  9. opt.wildmenu = true
  10. -- Comfort
  11. opt.number = true
  12. opt.tabstop = 4
  13. opt.softtabstop = 4
  14. opt.shiftwidth = 4
  15. -- Convert tabs to spaces
  16. opt.expandtab = true
  17. opt.smartindent = false
  18. opt.cindent = false
  19. opt.smartcase = true
  20. -- Disable swapfiles
  21. opt.swapfile = false
  22. opt.backup = false
  23. opt.spelllang = "de_ch,en"
  24. opt.showmode = false
  25. -- Set height below statusline
  26. opt.cmdheight = 1
  27. -- Faster update time for diagnostic messages
  28. opt.updatetime = 300
  29. -- Always show signcolumns
  30. opt.signcolumn = "yes"
  31. opt.colorcolumn = "80"
  32. -- Splits
  33. opt.splitbelow = true
  34. opt.splitright = true
  35. -- Conceal level
  36. opt.conceallevel = 0
  37. -- Lazy redraw for performance
  38. opt.lazyredraw = true
  39. -- Ignore case when searching
  40. opt.ignorecase = true
  41. -- Scrolling context
  42. opt.scrolloff = 3
  43. opt.sidescrolloff = 5
  44. -- Needed for colorizer plugin
  45. opt.termguicolors = true