Initial commit for public dots

This commit is contained in:
mequidis
2021-11-16 20:28:14 +02:00
commit b6cd7627e0
74 changed files with 5096 additions and 0 deletions

View File

@ -0,0 +1,31 @@
local cmd = vim.cmd
local opt = vim.opt
local g = vim.g
-- sensible settings
opt.autoread = true
opt.clipboard = 'unnamedplus'
opt.conceallevel = 0
opt.hlsearch = false
opt.lazyredraw = true
opt.mouse = 'a'
opt.nu = true
opt.rnu = true
opt.scrolloff = 10
opt.shortmess = 'c'
opt.showcmd = true
opt.showmode = false
opt.sw = 4
opt.swapfile = false
opt.timeoutlen = 500
opt.ts = 4
-- opt.wrap = false
-- :FormatJson command using jq
cmd 'autocmd FileType json :command! FormatJson %!jq .'
-- trigger autoread on file change
cmd "autocmd FocusGained,BufEnter,CursorHold,CursorHoldI * if mode() != 'c' | checktime | endif"
-- neovim-qt font
opt.guifont = 'DejaVu\\ Sans\\ Mono:h14'