.files/.config/nvim/lua/opts.lua

39 lines
666 B
Lua

M = {}
vim.o.hlsearch = false
vim.o.incsearch = true
vim.o.ignorecase = true
vim.o.smartcase = true
vim.o.number = true
vim.o.signcolumn = "yes"
vim.o.expandtab = true
vim.o.wrap = false -- Slows the editor
vim.o.linebreak = true
vim.o.breakindent = true
vim.o.filetype = "on"
vim.o.swapfile = false
vim.o.backup = false
vim.o.undofile = true
vim.o.termguicolors = true
vim.o.mouse = "a"
vim.o.autoindent = true
vim.o.scrolloff = 3
vim.o.showmode = false
vim.opt.listchars = { tab = "", trail = "" }
vim.o.list = true
vim.o.splitright = true
vim.o.splitbelow = true
function M.matchit_let_in() vim.b.match_words = [[\<let\>:\<in\>]] end
return M