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

58 lines
789 B
Lua
Raw Normal View History

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()