nix/programs/nvim/options.lua
Markus Zoppelt 62acde5fcc fix(neovim): harden security and add keymap descriptions
Disable modelines and set secure mode. Replace vim.cmd highlight
overrides with nvim_set_hl API. Remove redundancies.
Add desc to all keymaps for auditability.
2026-04-18 14:01:33 +02:00

27 lines
581 B
Lua

vim.g.mapleader = " "
vim.o.tabstop = 4
vim.o.softtabstop = 4
vim.o.shiftwidth = 4
vim.o.expandtab = true
vim.o.number = true
vim.o.relativenumber = true
vim.o.colorcolumn = "80"
vim.o.ignorecase = true
vim.o.smartcase = true
vim.o.linebreak = true
vim.o.completeopt = "menuone,noselect,popup,fuzzy"
vim.o.complete = ".,w,b,u,o"
vim.o.autocomplete = true
vim.o.visualbell = false
vim.o.hlsearch = false
-- Security
vim.o.modeline = false
vim.o.secure = true
vim.o.winborder = "rounded"
vim.o.pumborder = "rounded"
vim.o.pumwidth = 40
vim.o.pummaxwidth = 40
vim.o.pumheight = 16