2024-04-03 17:08:26 +02:00
|
|
|
vim.cmd("let g:netrw_liststyle = 3")
|
2022-10-17 20:40:36 +02:00
|
|
|
|
2024-04-03 17:08:26 +02:00
|
|
|
local opt = vim.opt
|
|
|
|
|
|
|
|
opt.relativenumber = true
|
|
|
|
opt.number = true
|
2022-10-17 20:40:36 +02:00
|
|
|
|
|
|
|
-- tabs & indentation
|
|
|
|
opt.tabstop = 2 -- 2 spaces for tabs (prettier default)
|
|
|
|
opt.shiftwidth = 2 -- 2 spaces for indent width
|
|
|
|
opt.expandtab = true -- expand tab to spaces
|
|
|
|
opt.autoindent = true -- copy indent from current line when starting new one
|
|
|
|
|
2024-04-03 17:08:26 +02:00
|
|
|
opt.wrap = false
|
2022-10-17 20:40:36 +02:00
|
|
|
|
|
|
|
-- search settings
|
|
|
|
opt.ignorecase = true -- ignore case when searching
|
|
|
|
opt.smartcase = true -- if you include mixed case in your search, assumes you want case-sensitive
|
|
|
|
|
2024-04-03 17:08:26 +02:00
|
|
|
opt.cursorline = true
|
2022-10-17 20:40:36 +02:00
|
|
|
|
2024-04-03 17:08:26 +02:00
|
|
|
-- turn on termguicolors for tokyonight colorscheme to work
|
2022-10-17 20:40:36 +02:00
|
|
|
-- (have to use iterm2 or any other true color terminal)
|
|
|
|
opt.termguicolors = true
|
|
|
|
opt.background = "dark" -- colorschemes that can be light or dark will be made dark
|
|
|
|
opt.signcolumn = "yes" -- show sign column so that text doesn't shift
|
|
|
|
|
|
|
|
-- backspace
|
|
|
|
opt.backspace = "indent,eol,start" -- allow backspace on indent, end of line or insert mode start position
|
|
|
|
|
|
|
|
-- clipboard
|
|
|
|
opt.clipboard:append("unnamedplus") -- use system clipboard as default register
|
|
|
|
|
|
|
|
-- split windows
|
|
|
|
opt.splitright = true -- split vertical window to the right
|
|
|
|
opt.splitbelow = true -- split horizontal window to the bottom
|
|
|
|
|
2023-08-24 19:39:11 +02:00
|
|
|
-- turn off swapfile
|
|
|
|
opt.swapfile = false
|