2022-03-22 19:19:22 +00:00
|
|
|
local opt = vim.o
|
2022-03-20 04:22:56 +00:00
|
|
|
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
|
|
|
|
|
2022-04-23 21:08:24 +00:00
|
|
|
opt.shell = "/home/mo/.local/bin/xonsh"
|
2022-03-20 04:22:56 +00:00
|
|
|
|
|
|
|
opt.confirm = true
|
|
|
|
|
2022-03-21 21:51:01 +00:00
|
|
|
opt.linebreak = true
|
|
|
|
|
2022-05-01 12:36:25 +00:00
|
|
|
opt.laststatus = 3
|
|
|
|
|
2022-03-20 04:22:56 +00:00
|
|
|
-- Highlight on yank
|
2022-05-01 12:36:25 +00:00
|
|
|
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,
|
|
|
|
})
|
2022-04-06 19:17:03 +00:00
|
|
|
|
2022-05-01 18:39:26 +00:00
|
|
|
-- Noevide
|
|
|
|
vim.g.neovide_refresh_rate = 120
|
|
|
|
|
2022-04-06 19:17:03 +00:00
|
|
|
-- Disable diagnostics
|
|
|
|
vim.diagnostic.disable()
|