1
0
mirror of https://codeberg.org/diginaut/dotfiles.git synced 2026-02-04 11:10:26 +01:00
Files
dotfiles/.config/nvim/lua/config/options.lua

30 lines
1002 B
Lua

-- Default options: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua
vim.g.mapleader = ","
vim.g.maplocalleader = ","
vim.opt.number = true
vim.opt.relativenumber = false -- relative line numbers
vim.opt.tabstop = 4 -- tab width in spaces
vim.bo.tabstop = 4 -- tab width in spaces
vim.opt.shiftwidth = 4 -- indent width
vim.bo.shiftwidth = 4 -- indent width
vim.opt.expandtab = true -- spaces instead of tabs
vim.opt.smartindent = true -- smart indentation
vim.opt.termguicolors = true -- true color support
vim.opt.clipboard = "unnamedplus" -- system clipboard
-- vim.opt.smoothscroll = true
vim.opt.conceallevel = 0 -- please don't hide stuff from me
vim.opt.wrap = true -- Enable line wrap
vim.opt.spelllang = { "en", "nl" }
-- Enable autoread and set up checking triggers
vim.o.autoread = true
vim.api.nvim_create_autocmd({ "FocusGained", "BufEnter" }, {
command = "if mode() != 'c' | checktime | endif",
pattern = "*",
})
-- Colorscheme is set in its plugin file