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.
27 lines
581 B
Lua
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
|