From 8c842122cf7d79bb706f9d0f96f5bea39c9c05d5 Mon Sep 17 00:00:00 2001 From: Quinn Date: Wed, 10 Dec 2025 10:32:07 +0100 Subject: [PATCH] sort opts alphabetically --- .config/nvim/lua/config/opts.lua | 46 ++++++++++++++++---------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/.config/nvim/lua/config/opts.lua b/.config/nvim/lua/config/opts.lua index 13aca54..dd4200a 100644 --- a/.config/nvim/lua/config/opts.lua +++ b/.config/nvim/lua/config/opts.lua @@ -1,18 +1,16 @@ local o = vim.opt -- set options -o.clipboard = "unnamedplus" -- keep the clipboard in sync with the one provided by the OS -o.termguicolors = true -- allows for colour in the terminal -o.number = true -- show line numbers -o.cursorline = true -- highlight the current line -o.cursorcolumn = false -- highlight the current column -o.dir = vim.fn.stdpath('cache') .. '/swp' -- swap directory location for recovery -o.sessionoptions = 'buffers,curdir,folds,help,localoptions,tabpages,terminal' -o.expandtab = false -- whether tabs are expanded to spaces (overridden by .editorconfig) -o.diffopt = 'internal,filler,closeoff,linematch:60' -- diff visualisation -o.foldenable = true -- whether folding is enabled -o.wrap = false -- whether to wrap text to a new line when it goes off-screen o.breakindent = true -- wrapped lines start at the same location as the start of the line +o.clipboard = "unnamedplus" -- keep the clipboard in sync with the one provided by the OS +o.cursorcolumn = false -- highlight the current column +o.cursorline = true -- highlight the current line +o.diffopt = 'internal,filler,closeoff,linematch:60' -- diff visualisation +o.dir = vim.fn.stdpath('cache') .. '/swp' -- swap directory location for recovery +o.expandtab = false -- whether tabs are expanded to spaces (overridden by .editorconfig) +o.foldenable = true -- whether folding is enabled +o.ignorecase = true -- whether case should be ignored whilst searching +o.inccommand = 'split' -- split|nosplit whether substitutions should appear whilst typing. o.list = true -- shows invisible characters o.listchars = { -- whitespace characters eol = nil, @@ -24,29 +22,31 @@ o.listchars = { -- whitespace charact nbsp = '␣', } o.mouse = 'nv' -- which modes the mouse is enabled in 'a:all' +o.number = true -- show line numbers o.relativenumber = true -- whether line numbers are relative to the cursor o.scrolloff = 10 -- minimal number of screen lines to keep above and below the cursor +o.sessionoptions = 'buffers,curdir,folds,help,localoptions,tabpages,terminal' +o.shiftwidth = 8 -- spaces for auto-indent +o.showmode = false -- don't show mode as this is already in the status line o.showtabline = 2 -- whether to show the tab line o.signcolumn = 'yes' -- always show the signcolumn, otherwise it shifts text all the time -o.tabstop = 8 -- visual spaces per tab -o.softtabstop = 8 -- spaces inserted per tab in insert mode -o.shiftwidth = 8 -- spaces for auto-indent -o.smartindent = true -- behave a bit more nuanced with when to indent -o.ignorecase = true -- whether case should be ignored whilst searching o.smartcase = true -- overrides the above option if contains capital letters -o.inccommand = 'split' -- split|nosplit whether substitutions should appear whilst typing. +o.smartindent = true -- behave a bit more nuanced with when to indent +o.softtabstop = 8 -- spaces inserted per tab in insert mode +o.spell = true -- whether spell checking is enabled +o.spellfile = vim.fn.stdpath('config') .. '/spell/user.utf-8.add' +o.spelllang = 'en_gb,nl' -- set the spell languages o.splitbelow = true -- force all horizontal splits below the current window o.splitright = true -- force all vertical splits to the right of this window -o.showmode = false -- don't show mode as this is already in the status line +o.tabstop = 8 -- visual spaces per tab +o.termguicolors = true -- allows for colour in the terminal +o.timeoutlen = 300 -- number of MS to wait for a mapped sequence to complete +o.ttimeoutlen = 0 -- number of MS to wait for a key sequence to complete o.undodir = vim.fn.stdpath('cache') .. '/undo' -- directory for undo files o.undofile = true -- for saving the undo history o.undolevels = 1024 -- the amount of changes that can be undone -o.timeoutlen = 300 -- number of MS to wait for a mapped sequence to complete -o.ttimeoutlen = 0 -- number of MS to wait for a key sequence to complete o.updatetime = 250 -- number of MS of nothing typed to write a swap file to disk. -o.spell = true -- whether spell checking is enabled -o.spelllang = 'en_gb,nl' -- set the spell languages -o.spellfile = vim.fn.stdpath('config') .. '/spell/user.utf-8.add' +o.wrap = false -- whether to wrap text to a new line when it goes off-screen vim.diagnostic.config({ underline = true, -- use underline for diagnostics