2024-04-23 04:34:15 +02:00
|
|
|
-- indentation
|
|
|
|
vim.opt.tabstop = 2
|
|
|
|
vim.opt.softtabstop = 2
|
|
|
|
vim.opt.shiftwidth = 2
|
|
|
|
vim.opt.expandtab = true
|
|
|
|
vim.opt.smartindent = true
|
|
|
|
vim.opt.breakindent = true
|
|
|
|
vim.opt.autoindent = true
|
|
|
|
vim.opt.smarttab = true
|
|
|
|
|
|
|
|
-- search and replace
|
|
|
|
vim.opt.ignorecase = true
|
|
|
|
vim.opt.smartcase = true
|
|
|
|
vim.opt.hlsearch = false
|
|
|
|
vim.opt.incsearch = true
|
|
|
|
vim.opt.gdefault = true
|
|
|
|
vim.opt.showmatch = true
|
|
|
|
vim.opt.grepformat = "%f:%l:%c:%m"
|
|
|
|
vim.opt.grepprg = "rg --vimgrep"
|
2024-05-21 10:58:35 +02:00
|
|
|
vim.opt.inccommand = "split"
|
2024-04-23 04:34:15 +02:00
|
|
|
|
|
|
|
-- user interface
|
|
|
|
vim.opt.fillchars = { eob = " " }
|
|
|
|
vim.opt.laststatus = 3
|
|
|
|
vim.opt.number = true
|
|
|
|
vim.opt.numberwidth = 2
|
|
|
|
vim.opt.relativenumber = true
|
|
|
|
vim.opt.ruler = false
|
|
|
|
vim.opt.wrap = true
|
|
|
|
vim.opt.termguicolors = true
|
2024-05-21 10:58:35 +02:00
|
|
|
vim.opt.scrolloff = 8
|
|
|
|
vim.opt.sidescrolloff = 8
|
2024-04-23 04:34:15 +02:00
|
|
|
vim.opt.signcolumn = "yes"
|
|
|
|
vim.opt.cursorline = true
|
2024-05-25 17:48:42 +02:00
|
|
|
vim.opt.cursorlineopt = "number"
|
2024-04-23 04:34:15 +02:00
|
|
|
vim.opt.conceallevel = 2
|
2024-05-25 17:48:42 +02:00
|
|
|
vim.opt.list = false
|
2024-04-23 04:34:15 +02:00
|
|
|
vim.opt.showmode = false
|
|
|
|
-- vim.opt.colorcolumn = "80"
|
|
|
|
vim.opt.winminwidth = 5
|
|
|
|
|
|
|
|
-- editing
|
|
|
|
vim.opt.completeopt = { "menu", "menuone", "noselect" }
|
2024-05-21 10:58:35 +02:00
|
|
|
vim.opt.updatetime = 250
|
2024-04-23 04:34:15 +02:00
|
|
|
vim.opt.timeoutlen = 300
|
|
|
|
vim.opt.undofile = true
|
|
|
|
vim.opt.autowrite = true
|
|
|
|
vim.opt.mouse = "a"
|
|
|
|
vim.opt.whichwrap:append("<>,[,],h,l")
|
|
|
|
vim.opt.iskeyword:append("-")
|
|
|
|
|
|
|
|
-- window management
|
|
|
|
vim.opt.splitbelow = true
|
|
|
|
vim.opt.splitright = true
|
|
|
|
|
|
|
|
-- clipboard
|
|
|
|
vim.opt.clipboard = "unnamedplus"
|
|
|
|
|
|
|
|
-- auto change dir
|
|
|
|
vim.opt.autochdir = true
|
|
|
|
|
|
|
|
-- fold options
|
|
|
|
vim.opt.foldlevel = 99
|
|
|
|
vim.opt.foldlevelstart = 99
|
|
|
|
vim.opt.foldenable = true
|
|
|
|
vim.opt.shortmess = "aoOFCWstTAIcCqFS"
|
|
|
|
|
|
|
|
-- gui options
|
|
|
|
vim.opt.guifont = "JetBrainsMono NF:h9"
|
|
|
|
|
|
|
|
-- neovide ui
|
|
|
|
vim.g.neovide_padding_top = 5
|
|
|
|
vim.g.neovide_padding_bottom = 0
|
|
|
|
vim.g.neovide_padding_right = 10
|
|
|
|
vim.g.neovide_padding_left = 10
|