2021-03-15 04:27:01 +01:00
|
|
|
vim.cmd('set iskeyword+=-') --treat dash separated words as a word text object"
|
|
|
|
vim.cmd('set shortmess+=c') --Don't pass messages to |ins-completion-menu|.
|
2021-03-14 20:10:28 +01:00
|
|
|
vim.o.hidden=true --Required to keep multiple buffers open multiple buffers
|
2021-03-15 04:27:01 +01:00
|
|
|
vim.wo.wrap=false --Display long lines as just one line
|
|
|
|
vim.cmd('set whichwrap+=<,>,[,],h,l')
|
2021-03-14 20:10:28 +01:00
|
|
|
vim.o.pumheight=10 --Makes popup menu smaller
|
|
|
|
vim.o.fileencoding="utf-8" --The encoding written to file
|
|
|
|
vim.o.cmdheight=2 --More space for displaying messages
|
|
|
|
vim.o.mouse="a" --Enable your mouse
|
|
|
|
vim.o.splitbelow=true --Horizontal splits will automatically be below
|
|
|
|
vim.o.termguicolors=true
|
|
|
|
vim.o.splitright=true --Vertical splits will automatically be to the right
|
|
|
|
vim.o.t_Co="256" --Support 256 colors
|
|
|
|
vim.o.conceallevel=0 --So that I can see `` in markdown files
|
2021-03-17 07:19:25 +01:00
|
|
|
vim.cmd('set ts=4') --Insert 2 spaces for a tab
|
|
|
|
vim.cmd('set sw=4') --Change the number of space characters inserted for indentation
|
2021-03-16 03:13:41 +01:00
|
|
|
vim.bo.expandtab=true --Converts tabs to spaces
|
|
|
|
vim.bo.smartindent=true --Makes indenting smart
|
2021-03-14 20:10:28 +01:00
|
|
|
vim.wo.number = true
|
2021-03-17 19:15:20 +01:00
|
|
|
vim.o.laststatus = 2
|
2021-03-16 03:13:41 +01:00
|
|
|
vim.wo.cursorline=true --Enable highlighting of the current line
|
2021-03-14 20:10:28 +01:00
|
|
|
vim.o.showtabline=2 --Always show tabs
|
|
|
|
vim.o.showmode=false --We don't need to see things like -- INSERT -- anymore
|
|
|
|
vim.o.backup=false --This is recommended by coc
|
|
|
|
vim.o.writebackup=false --This is recommended by coc
|
2021-03-14 21:55:38 +01:00
|
|
|
vim.wo.signcolumn="yes" --Always show the signcolumn, otherwise it would shift the text each time
|
2021-03-14 20:10:28 +01:00
|
|
|
vim.o.updatetime=300 --Faster completion
|
2021-03-15 02:36:54 +01:00
|
|
|
vim.o.timeoutlen=100 --By default timeoutlen is 1000 ms
|
2021-03-14 20:10:28 +01:00
|
|
|
vim.o.clipboard="unnamedplus" --Copy paste between vim and everything else
|
|
|
|
vim.o.guifont="JetBrainsMono\\ Nerd\\ Font\\ Mono:h18"
|