1
0
mirror of https://codeberg.org/diginaut/dotfiles.git synced 2026-02-04 14:40:27 +01:00

Compare commits

..

2 Commits

2 changed files with 14 additions and 0 deletions

View File

@@ -19,4 +19,11 @@ vim.opt.wrap = true -- Enable line wrap
vim.opt.spelllang = { "en", "nl" }
-- 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

7
.vimrc
View File

@@ -674,6 +674,13 @@ iab <expr> dayh strftime("== %Y%m%d %A ======")
" Replace 'timeh' with a formatted date/time header
iab <expr> timeh strftime("## %Y%m%d %a %H:%M:%S")
iabbrev <expr> ,d strftime('%Y-%m-%d')
iabbrev <expr> ,t strftime('%Y-%m-%dT%TZ')
inoreabbrev <expr> ,u system('uuidgen')->trim()->tolower()
" 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()")
" Fly through buffers instead of cycling
" nnoremap <leader>l :ls<cr>:b<space>