options.lua 1.2 KB

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