From e0d3364d9ddafb5fa6a749d98e1b74c41278bed3 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Fri, 31 Jan 2025 13:28:36 -0800 Subject: [PATCH] [nvim] Add some helpful comments to configuration.lua --- config/nvim/lua/configuration.lua | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/config/nvim/lua/configuration.lua b/config/nvim/lua/configuration.lua index 386aade..1cd045a 100644 --- a/config/nvim/lua/configuration.lua +++ b/config/nvim/lua/configuration.lua @@ -1,6 +1,6 @@ -- Eryn Wells --- [[ Editor Confguration ]] +-- [[ Editor Configuration ]] local opt = vim.opt -- Reread files when they change outside of neovim @@ -38,6 +38,9 @@ opt.linebreak = true opt.textwidth = 80 -- Mark columns 80, 90, and 120 opt.colorcolumn = {80, 90, 120} + +-- Briefly show the matching parenthesis or bracket when typing one of those +-- characters. opt.showmatch = true opt.formatoptions:append("n") @@ -61,13 +64,14 @@ opt.incsearch = true opt.gdefault = true -- Prefer spaces to tabs. Indent tab characters 8 spaces, and soft indent 4 --- spaces. Never write tabs if you can help it, and do some nice things when --- wrapping and joining and copying. +-- spaces. Never write tabs if you can help it. opt.tabstop = 8 opt.shiftwidth = 4 opt.softtabstop = 4 opt.shiftround = true opt.expandtab = true + +-- Do some nice things when wrapping, joining, and copying. opt.joinspaces = false opt.autoindent = true opt.copyindent = true