dotfiles-nvim/lua/sets.lua

53 lines
984 B
Lua
Raw Normal View History

2023-12-18 09:11:00 +01:00
-- line numbers
vim.o.number = true
vim.o.relativenumber = true
-- show hidden characters
vim.opt.list = true
2024-01-07 18:16:05 +01:00
vim.opt.listchars = { tab = "", trail = "·" }
2023-12-18 09:11:00 +01:00
-- indentation
vim.opt.expandtab = true
vim.opt.tabstop = 4
vim.opt.softtabstop = 4
vim.opt.shiftwidth = 4
vim.opt.smartindent = true
-- line wrapping
vim.opt.wrap = false
-- undo history
vim.opt.swapfile = false
vim.opt.backup = false
vim.opt.undodir = os.getenv("HOME") .. "/.local/state/nvim/undodir"
vim.opt.undofile = true
vim.opt.updatetime = 50
2023-12-21 12:44:47 +01:00
-- my brain is backwards
vim.opt.splitright = true
vim.opt.splitbelow = true
2023-12-20 12:12:56 +01:00
2023-12-18 09:11:00 +01:00
-- end search when exiting
vim.opt.hlsearch = false
vim.opt.incsearch = true
2024-01-07 18:16:05 +01:00
-- spellchecking
2024-01-07 23:06:33 +01:00
vim.opt.spelllang = { "en_us", "fr" }
2024-01-07 18:16:05 +01:00
vim.opt.spell = true
2024-01-09 10:06:54 +01:00
vim.opt.spellfile = "spell/add.utf-8.add"
2024-01-07 18:16:05 +01:00
-- exrc
vim.opt.exrc = true
2023-12-18 09:11:00 +01:00
-- stuff
2023-12-28 18:09:16 +01:00
vim.opt.mousemodel = "extend"
2023-12-18 09:11:00 +01:00
2024-01-07 18:19:07 +01:00
vim.opt.fillchars:append({ eob = " " })
2023-12-18 09:11:00 +01:00
vim.opt.termguicolors = true
vim.opt.scrolloff = 8
vim.opt.colorcolumn = "80"