nix/config/nvim/plugin/options.lua
Barrett Ruth e13601bb43
Some checks are pending
quality / changes (push) Waiting to run
quality / Nix Format Check (push) Blocked by required conditions
quality / Deadnix Check (push) Blocked by required conditions
quality / Statix Check (push) Blocked by required conditions
quality / Lua Format Check (push) Blocked by required conditions
quality / Lua Lint Check (push) Blocked by required conditions
quality / Prettier Format Check (push) Blocked by required conditions
fix(nvim): update preview.nvim setup
2026-03-16 15:19:57 -04:00

82 lines
1.5 KiB
Lua
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

vim.o.autoread = true
vim.o.autowrite = true
vim.o.breakindent = true
vim.o.cursorline = true
vim.opt.diffopt:append('linematch:60')
vim.o.expandtab = true
vim.o.exrc = true
vim.o.secure = true
vim.o.foldcolumn = 'auto'
vim.o.foldexpr = 'v:lua.vim.treesitter.foldexpr()'
vim.o.foldlevel = 99
vim.o.foldmethod = 'expr'
vim.o.foldtext = ''
vim.opt.fillchars = {
eob = ' ',
vert = '',
diff = '',
foldopen = 'v',
foldclose = '>',
foldsep = ' ',
foldinner = ' ',
}
vim.opt.iskeyword:append('-')
vim.o.laststatus = 3
vim.o.linebreak = true
vim.o.list = true
vim.opt.listchars = {
space = ' ',
trail = '·',
tab = '··',
}
vim.opt.matchpairs:append('<:>')
vim.o.number = true
vim.o.relativenumber = true
vim.o.signcolumn = 'no'
vim.o.statuscolumn = "%{%v:virtnum?'':'%s%C %=%{v:relnum?v:relnum:v:lnum} '%}"
vim.o.statusline =
" %{len(expand('%'))?expand('%:~').' ':''}%h%m%r%=%c:%l/%L %{&ft!=''?&ft:&bt} "
vim.opt.path:append('**')
vim.o.scrolloff = 8
vim.o.shiftwidth = 2
vim.opt.shortmess:append('acCIs')
vim.o.spellfile = (vim.env.XDG_DATA_HOME or (vim.env.HOME .. '/.local/share'))
.. '/nvim/spell.encoding.add'
vim.o.splitkeep = 'screen'
vim.o.splitbelow = true
vim.o.splitright = true
vim.o.swapfile = false
vim.o.termguicolors = true
vim.o.undodir = (vim.env.XDG_DATA_HOME or (vim.env.HOME .. '/.local/share'))
.. '/nvim/undo'
vim.o.undofile = true
vim.o.updatetime = 50
vim.o.winborder = 'single'
vim.o.wrap = false