45 lines
1.1 KiB
Lua
45 lines
1.1 KiB
Lua
local M = {}
|
|
|
|
function M.setup()
|
|
--vim.o.colorcolumn=0
|
|
vim.o.autoindent = true
|
|
vim.o.autoread = true
|
|
vim.o.completeopt = 'menuone,noinsert,noselect'
|
|
vim.o.cursorline = true
|
|
vim.o.expandtab = true
|
|
vim.o.fileencodings = 'ucs-bom,utf-8,default,windows-1250,cp852'
|
|
vim.o.foldcolumn = 'auto:1'
|
|
vim.o.foldenable = true
|
|
vim.o.foldmethod = 'marker'
|
|
vim.o.foldopen = 'hor,mark,percent,quickfix,search,tag,undo'
|
|
vim.o.hidden = true
|
|
vim.o.ignorecase = true
|
|
vim.o.inccommand = 'split'
|
|
vim.o.incsearch = true
|
|
vim.o.list = false
|
|
vim.o.mouse = ''
|
|
vim.o.number = true
|
|
vim.o.path = '**'
|
|
vim.o.relativenumber = false
|
|
vim.o.ruler = true
|
|
vim.o.scrolloff = 3
|
|
vim.o.shiftwidth = 4
|
|
vim.o.showcmd = true
|
|
vim.o.sidescrolloff = 5
|
|
vim.o.signcolumn = 'yes'
|
|
vim.o.smartcase = true
|
|
vim.o.smartindent = true
|
|
vim.o.softtabstop = 4
|
|
vim.o.swapfile = true
|
|
vim.o.tabstop = 4
|
|
vim.o.undofile = true
|
|
vim.o.splitbelow = true
|
|
vim.o.splitright = true
|
|
--vim.o.clipboard = "unnamedplus"
|
|
|
|
vim.o.grepprg = 'rg --vimgrep --no-ignore --smart-case $*'
|
|
vim.o.grepformat = '%f:%l:%c:%m'
|
|
|
|
end
|
|
|
|
return M
|