mirror of
https://codeberg.org/diginaut/dotfiles.git
synced 2026-02-04 13:30:26 +01:00
39 lines
1.4 KiB
Lua
39 lines
1.4 KiB
Lua
-- Default options: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua
|
|
|
|
vim.g.mapleader = ","
|
|
vim.g.maplocalleader = ","
|
|
|
|
vim.opt.number = true
|
|
vim.opt.relativenumber = false -- relative line numbers
|
|
vim.opt.tabstop = 4 -- tab width in spaces
|
|
vim.bo.tabstop = 4 -- tab width in spaces
|
|
vim.opt.shiftwidth = 4 -- indent width
|
|
vim.bo.shiftwidth = 4 -- indent width
|
|
vim.opt.expandtab = true -- spaces instead of tabs
|
|
vim.opt.smartindent = true -- smart indentation
|
|
vim.opt.termguicolors = true -- true color support
|
|
vim.opt.clipboard = "unnamedplus" -- system clipboard
|
|
-- vim.opt.smoothscroll = true
|
|
vim.opt.conceallevel = 0 -- please don't hide stuff from me
|
|
vim.opt.wrap = true -- Enable line wrap
|
|
|
|
vim.opt.spelllang = { "en", "nl" }
|
|
|
|
-- Replace 'dayh' with a formatted day header
|
|
vim.cmd("iab <expr> dayh strftime('== %Y%m%d %A ======')")
|
|
-- Replace 'timeh' with a formatted date/time header
|
|
vim.cmd("iab <expr> timeh strftime('## %Y%m%d %a %H:%M:%S')")
|
|
|
|
-- vim.cmd("iabbrev <expr> ,d strftime('%Y-%m-%d')")
|
|
-- vim.cmd("iabbrev <expr> ,t strftime('%Y-%m-%dT%TZ')")
|
|
vim.cmd("inoreabbrev <expr> ,u system('uuidgen')->trim()->tolower()")
|
|
|
|
-- Enable autoread and set up checking triggers
|
|
vim.o.autoread = true
|
|
vim.api.nvim_create_autocmd({ "FocusGained", "BufEnter" }, {
|
|
command = "if mode() != 'c' | checktime | endif",
|
|
pattern = "*",
|
|
})
|
|
|
|
-- Colorscheme is set in its plugin file
|