settings.lua 2.0 KB

1234567891011121314151617181920212223242526272829303132
  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.o.hidden = O.hidden_files -- Required to keep multiple buffers open multiple buffers
  4. vim.wo.wrap = O.wrap_lines -- Display long lines as just one line
  5. vim.cmd('set whichwrap+=<,>,[,],h,l') -- move to next line with theses keys
  6. vim.cmd('syntax on') -- move to next line with theses keys
  7. vim.o.pumheight = 10 -- Makes popup menu smaller
  8. vim.o.fileencoding = "utf-8" -- The encoding written to file
  9. vim.o.cmdheight = 2 -- More space for displaying messages
  10. vim.cmd('set colorcolumn=99999') -- fix indentline for now
  11. vim.o.mouse = "a" -- Enable your mouse
  12. vim.o.splitbelow = true -- Horizontal splits will automatically be below
  13. vim.o.termguicolors = true -- set term giu colors most terminals support this
  14. vim.o.splitright = true -- Vertical splits will automatically be to the right
  15. vim.o.t_Co = "256" -- Support 256 colors
  16. vim.o.conceallevel = 0 -- So that I can see `` in markdown files
  17. vim.cmd('set ts=4') -- Insert 2 spaces for a tab
  18. vim.cmd('set sw=4') -- Change the number of space characters inserted for indentation
  19. vim.bo.expandtab = true -- Converts tabs to spaces
  20. vim.bo.smartindent = true -- Makes indenting smart
  21. vim.wo.number = O.number -- set numbered lines
  22. vim.wo.relativenumber = O.relative_number -- set relative number
  23. vim.wo.cursorline = true -- Enable highlighting of the current line
  24. vim.o.showtabline = 2 -- Always show tabs
  25. vim.o.showmode = false -- We don't need to see things like -- INSERT -- anymore
  26. vim.o.backup = false -- This is recommended by coc
  27. vim.o.writebackup = false -- This is recommended by coc
  28. vim.wo.signcolumn = "yes" -- Always show the signcolumn, otherwise it would shift the text each time
  29. vim.o.updatetime = 300 -- Faster completion
  30. vim.o.timeoutlen = 100 -- By default timeoutlen is 1000 ms
  31. vim.o.clipboard = "unnamedplus" -- Copy paste between vim and everything else
  32. vim.o.guifont = "JetBrainsMono\\ Nerd\\ Font\\ Mono:h18"