2022-05-04 20:49:26 +00:00
|
|
|
local o = vim.o
|
2022-03-20 04:22:56 +00:00
|
|
|
|
|
|
|
--
|
|
|
|
|
2022-05-04 20:49:26 +00:00
|
|
|
o.expandtab = true
|
|
|
|
o.tabstop = 4
|
|
|
|
o.shiftwidth = 4
|
|
|
|
o.smartindent = true
|
2022-03-20 04:22:56 +00:00
|
|
|
|
2022-05-04 20:49:26 +00:00
|
|
|
o.number = true
|
|
|
|
o.relativenumber = true
|
2022-03-20 04:22:56 +00:00
|
|
|
|
2022-05-04 20:49:26 +00:00
|
|
|
o.ignorecase = true
|
|
|
|
o.smartcase = true
|
2022-03-20 04:22:56 +00:00
|
|
|
|
2022-05-04 20:49:26 +00:00
|
|
|
o.gdefault = true
|
2022-03-20 04:22:56 +00:00
|
|
|
|
2022-05-04 20:49:26 +00:00
|
|
|
o.termguicolors = true
|
2022-03-20 04:22:56 +00:00
|
|
|
|
2022-05-04 20:49:26 +00:00
|
|
|
o.wrap = false
|
2022-03-20 04:22:56 +00:00
|
|
|
|
2022-05-04 20:49:26 +00:00
|
|
|
o.whichwrap = "b,s,h,l,<,>,[,]"
|
2022-03-20 04:22:56 +00:00
|
|
|
|
2022-05-04 20:49:26 +00:00
|
|
|
o.clipboard = "unnamedplus"
|
2022-03-20 04:22:56 +00:00
|
|
|
|
2022-05-04 20:49:26 +00:00
|
|
|
o.undofile = true
|
2022-03-20 04:22:56 +00:00
|
|
|
|
2022-05-04 20:49:26 +00:00
|
|
|
o.showmode = false
|
2022-03-20 04:22:56 +00:00
|
|
|
|
2022-05-04 20:49:26 +00:00
|
|
|
o.scrolloff = 3
|
|
|
|
o.sidescrolloff = 5
|
2022-03-20 04:22:56 +00:00
|
|
|
|
2022-05-04 20:49:26 +00:00
|
|
|
o.cursorline = true
|
2022-03-20 04:22:56 +00:00
|
|
|
|
2022-05-04 20:49:26 +00:00
|
|
|
o.shell = "/usr/bin/fish"
|
2022-03-20 04:22:56 +00:00
|
|
|
|
2022-05-04 20:49:26 +00:00
|
|
|
o.confirm = true
|
2022-03-20 04:22:56 +00:00
|
|
|
|
2022-05-04 20:49:26 +00:00
|
|
|
o.linebreak = true
|
2022-03-21 21:51:01 +00:00
|
|
|
|
2022-05-04 20:49:26 +00:00
|
|
|
o.laststatus = 3
|
2022-05-01 12:36:25 +00:00
|
|
|
|
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
|
2022-05-04 20:49:26 +00:00
|
|
|
vim.g.neovide_refresh_rate = 90
|
2022-05-01 18:39:26 +00:00
|
|
|
|
2022-04-06 19:17:03 +00:00
|
|
|
-- Disable diagnostics
|
|
|
|
vim.diagnostic.disable()
|