Overview#

You can define basic behaviour and visual appearance of the editor
(line numbers, indentation depth, clipboard behaviour and global
display settings) in here.

-- General Settings

-- Display Options
vim.opt.fillchars = { eob = " " }  -- Set end-of-buffer character (remove ~ symbols)
vim.opt.termguicolors = true       -- Enable true color support for better colors
vim.opt.showmode = false           -- Don't show mode in command line (handled by statusline)
vim.opt.ruler = false              -- Don't show cursor position in command line
vim.opt.laststatus = 2             -- Always show statusline
vim.opt.cmdheight = 0              -- Hide command line when not used
vim.opt.conceallevel = 2		   -- what md elements to show
vim.opt.shortmess:append("c")	   -- Unterdrücke completion messages
vim.opt.more = false          	   -- Kein "Press ENTER to continue"

-- Line Numbers
vim.opt.relativenumber = true      -- Show relative line numbers for easy jumping
vim.opt.number = true              -- Show absolute line number at cursor line

-- Indentation
vim.opt.tabstop = 2                -- Number of spaces for a tab character
vim.opt.shiftwidth = 2             -- Number of spaces for indentation (>>, <<)

-- System Integration
vim.opt.clipboard = "unnamedplus"  -- Use system clipboard for all operations
vim.opt.encoding = "utf-8"         -- Set file encoding to UTF-8

-- Search Behavior
vim.opt.ignorecase = true          -- Case-insensitive search by default
vim.opt.smartcase = true           -- Override ignorecase if uppercase letters in pattern