1
0
Fork 0
mirror of https://codeberg.org/Mo8it/dotfiles.git synced 2024-10-17 20:52:40 +00:00
dotfiles/.config/nvim/lua/options.lua
2022-05-01 20:39:26 +02:00

58 lines
868 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 = "/home/mo/.local/bin/xonsh"
opt.confirm = true
opt.linebreak = true
opt.laststatus = 3
-- Highlight on yank
local function custom_highlight_on_yank()
return vim.highlight.on_yank({ timeout = 1200 })
end
vim.api.nvim_create_autocmd("TextYankPost", {
pattern = "*",
callback = custom_highlight_on_yank,
})
-- Noevide
vim.g.neovide_refresh_rate = 120
-- Disable diagnostics
vim.diagnostic.disable()