mirror of
https://codeberg.org/Mo8it/dotfiles.git
synced 2025-01-05 15:49:20 +00:00
57 lines
789 B
Lua
57 lines
789 B
Lua
local o = vim.o
|
|
|
|
--
|
|
|
|
o.expandtab = true
|
|
o.tabstop = 4
|
|
o.shiftwidth = 4
|
|
o.smartindent = true
|
|
|
|
o.number = true
|
|
o.relativenumber = true
|
|
|
|
o.ignorecase = true
|
|
o.smartcase = true
|
|
|
|
o.gdefault = true
|
|
|
|
o.termguicolors = true
|
|
|
|
o.wrap = false
|
|
|
|
o.whichwrap = "b,s,h,l,<,>,[,]"
|
|
|
|
o.clipboard = "unnamedplus"
|
|
|
|
o.undofile = true
|
|
|
|
o.showmode = false
|
|
|
|
o.scrolloff = 3
|
|
o.sidescrolloff = 5
|
|
|
|
o.cursorline = true
|
|
|
|
o.shell = "/usr/bin/fish"
|
|
|
|
o.confirm = true
|
|
|
|
o.linebreak = true
|
|
|
|
o.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 = 90
|
|
|
|
-- Disable diagnostics
|
|
vim.diagnostic.disable()
|