Files
dotfiles/.config/nvim/lua/jirr02/core/options.lua
T
2026-11-07 19:46:22 +01:00

55 lines
871 B
Lua

local opt = vim.opt
opt.termsync = false
opt.relativenumber = true
opt.number = true
-- treesitter
vim.api.nvim_create_autocmd("FileType", {
callback = function()
pcall(vim.treesitter.start)
end,
})
-- tabs & indentation
opt.tabstop = 2
opt.shiftwidth = 2
opt.expandtab = true
opt.autoindent = true
-- disable line wrapping
opt.wrap = false
-- search settings
opt.ignorecase = true
opt.smartcase = true
-- undo
opt.undodir = os.getenv("HOME") .. "/.vim/undodir"
opt.undofile = true
-- search behaviour
opt.hlsearch = false
opt.incsearch = true
-- colorscheme
opt.termguicolors = true
opt.background = "dark"
opt.signcolumn = "yes"
-- backspace
opt.backspace = "indent,eol,start"
-- clipboard
opt.clipboard:append("unnamedplus")
-- splitting windows
opt.splitright = true
opt.splitbelow = true
opt.iskeyword:append("-")
-- concealer
opt.conceallevel = 2