general.lua 733 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. vim.cmd("syntax on")
  2. vim.cmd("set nowrap")
  3. vim.g.autoformat = false
  4. vim.g.zig_fmt_autosave = 0
  5. -- The standard.
  6. vim.cmd.language("en_US")
  7. -- Fucking hate swapfiles.
  8. vim.opt.swapfile = false
  9. -- Show line number.
  10. vim.o.number = true
  11. --
  12. vim.o.cursorline = true
  13. -- For quick changing of character case.
  14. vim.opt.tildeop = true
  15. -- Cursor stuff.
  16. vim.o.guicursor = 'n-v-c-sm-i-ci-ve:block,r-cr-o:hor20,a:blinkoff700-blinkoff400-blinkoff250-Cursor/lCursor'
  17. -- To see more.
  18. vim.opt.listchars = {
  19. tab = '|-',
  20. trail = '.',
  21. lead = '.',
  22. }
  23. -- Should recall later.
  24. vim.opt.list = true
  25. -- Golang, C based configuration
  26. vim.o.expandtab = false
  27. vim.o.autoindent = true
  28. vim.o.foldmethod = 'indent'
  29. vim.o.tabstop = 4
  30. vim.o.shiftwidth = 4