You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
893 B

  1. vim.g.mapleader = ' '
  2. vim.opt.clipboard = 'unnamedplus'
  3. vim.opt.hlsearch = false
  4. vim.opt.incsearch = true
  5. vim.opt.ignorecase = true
  6. vim.opt.mouse = 'nv'
  7. vim.opt.smartcase = true
  8. vim.opt.linebreak = true
  9. vim.opt.smartindent = true
  10. vim.opt.swapfile = false
  11. vim.opt.backup = false
  12. vim.opt.undodir = vim.fn.expand('~/.cache/nvim/undodir')
  13. vim.opt.undofile = true
  14. vim.opt.encoding = 'utf-8'
  15. vim.opt.number = true
  16. vim.opt.relativenumber = true
  17. vim.opt.tabstop = 4
  18. vim.opt.softtabstop = 4
  19. vim.opt.expandtab = true
  20. vim.opt.shiftwidth = 4
  21. vim.opt.smarttab = true
  22. vim.opt.scrolloff = 8
  23. vim.opt.signcolumn = 'yes'
  24. vim.opt.isfname:append('@-@')
  25. vim.opt.pumheight = 10
  26. vim.opt.updatetime = 50
  27. vim.opt.colorcolumn = "80"
  28. vim.opt.cursorline = true
  29. vim.opt.formatoptions = 'tqj'
  30. vim.opt.splitbelow = true
  31. vim.opt.splitright = true
  32. vim.opt.diffopt:append('vertical')
  33. vim.opt.termguicolors = true