settings.lua 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. vim.cmd('set iskeyword+=-') --treat dash separated words as a word text object"
  2. vim.cmd('set shortmess+=c') --Don't pass messages to |ins-completion-menu|.
  3. -- vim.cmd('set formatoptions-=cro') -- Stop newline continution of comments
  4. -- vim.cmd('set fo-=ro')
  5. -- vim.api.nvim_set_option('set fo-=ro', false)
  6. -- vim.wo.formatoptions="" --Required to keep multiple buffers open multiple buffers
  7. vim.o.hidden=true --Required to keep multiple buffers open multiple buffers
  8. vim.wo.wrap=false --Display long lines as just one line
  9. vim.cmd('set whichwrap+=<,>,[,],h,l')
  10. vim.o.encoding="utf-8" --The encoding displayed
  11. vim.o.pumheight=10 --Makes popup menu smaller
  12. vim.o.fileencoding="utf-8" --The encoding written to file
  13. vim.o.ruler=true -- " Show the cursor position all the time
  14. vim.o.cmdheight=2 --More space for displaying messages
  15. vim.o.mouse="a" --Enable your mouse
  16. vim.o.splitbelow=true --Horizontal splits will automatically be below
  17. vim.o.termguicolors=true
  18. vim.o.splitright=true --Vertical splits will automatically be to the right
  19. vim.o.t_Co="256" --Support 256 colors
  20. vim.o.conceallevel=0 --So that I can see `` in markdown files
  21. vim.o.tabstop=2 --Insert 2 spaces for a tab
  22. vim.o.shiftwidth=2 --Change the number of space characters inserted for indentation
  23. vim.o.smarttab=true --Makes tabbing smarter will realize you have 2 vs 4
  24. vim.o.expandtab=true --Converts tabs to spaces
  25. vim.o.smartindent=true --Makes indenting smart
  26. vim.o.autoindent=true --Good auto indent
  27. vim.o.laststatus=2 --Always display the status line
  28. vim.wo.number = true
  29. vim.o.cursorline=true --Enable highlighting of the current line
  30. vim.o.background="dark" --tell vim what the background color looks like
  31. vim.o.showtabline=2 --Always show tabs
  32. vim.o.showmode=false --We don't need to see things like -- INSERT -- anymore
  33. vim.o.backup=false --This is recommended by coc
  34. vim.o.writebackup=false --This is recommended by coc
  35. vim.wo.signcolumn="yes" --Always show the signcolumn, otherwise it would shift the text each time
  36. vim.o.updatetime=300 --Faster completion
  37. vim.o.timeoutlen=100 --By default timeoutlen is 1000 ms
  38. vim.o.clipboard="unnamedplus" --Copy paste between vim and everything else
  39. vim.o.incsearch=true
  40. vim.o.guifont="JetBrainsMono\\ Nerd\\ Font\\ Mono:h18"