2023-08-02 16:39:49 +02:00
|
|
|
-- numbers
|
|
|
|
vim.opt.number = true
|
|
|
|
vim.opt.relativenumber = true
|
|
|
|
|
|
|
|
-- tab && indent
|
|
|
|
vim.opt.tabstop = 4
|
2023-12-07 23:04:29 +01:00
|
|
|
vim.opt.softtabstop = 0
|
2023-08-02 16:39:49 +02:00
|
|
|
vim.opt.shiftwidth = 4
|
|
|
|
vim.opt.smartindent = true
|
|
|
|
vim.o.breakindent = true
|
|
|
|
|
|
|
|
-- lines
|
|
|
|
vim.opt.wrap = true
|
|
|
|
vim.opt.smarttab = true
|
|
|
|
|
|
|
|
vim.opt.list = true
|
|
|
|
vim.opt.listchars:append "eol:↴"
|
|
|
|
|
|
|
|
-- undo
|
|
|
|
vim.opt.undodir = os.getenv("HOME") .. "/.vim/undodir"
|
|
|
|
vim.opt.undofile = true
|
|
|
|
|
|
|
|
-- search
|
|
|
|
vim.opt.hlsearch = false
|
|
|
|
vim.opt.incsearch = true
|
|
|
|
|
|
|
|
vim.o.ignorecase = true
|
|
|
|
vim.o.smartcase = true
|
|
|
|
|
|
|
|
-- colors
|
|
|
|
vim.opt.termguicolors = true
|
2024-04-18 19:17:22 +02:00
|
|
|
vim.cmd.colorscheme "melange"
|
2023-08-02 16:39:49 +02:00
|
|
|
|
|
|
|
vim.opt.cursorline = true
|
|
|
|
|
|
|
|
-- misc
|
|
|
|
vim.opt.swapfile = false
|
|
|
|
vim.opt.backup = false
|
|
|
|
vim.opt.scrolloff = 8
|
|
|
|
vim.opt.sidescrolloff = 8
|
|
|
|
vim.opt.signcolumn = "yes"
|
|
|
|
vim.opt.isfname:append("@-@")
|
|
|
|
vim.opt.updatetime = 50
|
2024-04-18 19:17:22 +02:00
|
|
|
vim.opt.timeoutlen = 300
|
2023-08-02 16:39:49 +02:00
|
|
|
vim.o.mouse = "a"
|
|
|
|
vim.opt.showmode = false
|
|
|
|
|
2024-04-18 19:17:22 +02:00
|
|
|
vim.g.have_nerd_font = true
|
|
|
|
|
2023-08-02 16:39:49 +02:00
|
|
|
vim.o.completeopt = "menuone,noselect"
|
2023-12-07 23:04:29 +01:00
|
|
|
|
2024-04-18 19:17:22 +02:00
|
|
|
-- vim.filetype.add({extension = {leaf = 'html'}})
|