mirror of
https://codeberg.org/Mo8it/dotfiles.git
synced 2025-01-07 15:59:19 +00:00
46 lines
671 B
Lua
46 lines
671 B
Lua
local opt = vim.o
|
|
local cmd = vim.cmd
|
|
|
|
--
|
|
|
|
opt.expandtab = true
|
|
opt.tabstop = 4
|
|
opt.shiftwidth = 4
|
|
opt.smartindent = true
|
|
|
|
opt.number = true
|
|
opt.relativenumber = true
|
|
|
|
opt.ignorecase = true
|
|
opt.smartcase = true
|
|
|
|
opt.gdefault = true
|
|
|
|
opt.termguicolors = true
|
|
|
|
opt.wrap = false
|
|
|
|
opt.whichwrap = "b,s,h,l,<,>,[,]"
|
|
|
|
opt.clipboard = "unnamedplus"
|
|
|
|
opt.undofile = true
|
|
|
|
opt.showmode = false
|
|
|
|
opt.scrolloff = 3
|
|
opt.sidescrolloff = 5
|
|
|
|
opt.cursorline = true
|
|
|
|
opt.shell = "/usr/bin/fish"
|
|
|
|
opt.confirm = true
|
|
|
|
opt.linebreak = true
|
|
|
|
-- Highlight on yank
|
|
vim.cmd([[au TextYankPost * silent! lua vim.highlight.on_yank {timeout=1200}]])
|
|
|
|
-- Disable diagnostics
|
|
vim.diagnostic.disable()
|