2022-08-17 00:04:47 +02:00
|
|
|
---@format disable-next
|
|
|
|
local options = {
|
|
|
|
number = true, -- line numbers
|
|
|
|
list = true, -- show whitespace
|
|
|
|
listchars = 'tab:▸ ,trail:·,nbsp:+',
|
|
|
|
textwidth = 80, -- default text width
|
2022-08-17 16:44:32 +02:00
|
|
|
colorcolumn = '+1', -- display column 1 char after tw
|
2022-08-17 00:04:47 +02:00
|
|
|
wrap = false, -- don't wrap long lines
|
|
|
|
linebreak = true, -- break on word boundaries
|
|
|
|
cursorline = true, -- highlight row with cursor
|
|
|
|
scrolloff = 5, -- show 5 lines below/above cursor
|
|
|
|
sidescrolloff = 5, -- same for left/right
|
|
|
|
expandtab = true, -- indent using spaces
|
|
|
|
tabstop = 4, -- 1 tab = 4 spaces
|
|
|
|
shiftwidth = 4, -- 1 indentation = 4 spaces
|
|
|
|
completeopt = 'menu,menuone,noselect', -- completion popup
|
|
|
|
autochdir = true, -- change workir to current file dir
|
2022-08-30 06:39:36 +02:00
|
|
|
cmdheight = 1, -- message area size
|
2022-08-17 00:04:47 +02:00
|
|
|
mouse = '', -- make use of mouse in these modes
|
|
|
|
pumheight = 10, -- maximum entries in popup menu
|
|
|
|
smartindent = true, -- indent after { and so on
|
2022-08-18 15:26:37 +02:00
|
|
|
statusline = '%<%f %h%m%r%=%y %l,%c%V (%P)',
|
2022-08-26 04:20:49 +02:00
|
|
|
laststatus = 3, -- global statusline
|
2022-08-17 00:04:47 +02:00
|
|
|
formatoptions = vim.o.formatoptions .. 'n',
|
|
|
|
splitright = true, -- split vertical window right
|
2022-08-28 21:12:23 +02:00
|
|
|
shada = [['1000,<50,s10,h]], -- save last 1000 files
|
|
|
|
title = true, -- set terminal title
|
2022-09-09 05:32:20 +02:00
|
|
|
spelllang = 'en', -- words from all regions
|
2023-06-29 12:19:08 +02:00
|
|
|
signcolumn = 'yes', -- always show sign column
|
|
|
|
modeline = true -- always interpret modeline
|
2022-08-17 00:04:47 +02:00
|
|
|
}
|
|
|
|
for k, v in pairs(options) do
|
|
|
|
vim.o[k] = v
|
|
|
|
end
|