From c7171616d3e76700f68f72363020866faef0ff52 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Sat, 23 Sep 2023 23:02:07 +0200 Subject: Refactor options --- fnl/settings/options.fnl | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'fnl/settings') diff --git a/fnl/settings/options.fnl b/fnl/settings/options.fnl index 430e4f4..9e0134a 100644 --- a/fnl/settings/options.fnl +++ b/fnl/settings/options.fnl @@ -1,9 +1,5 @@ ;; Sets options in neovim -(fn setup [opts] - (each [k v (pairs opts)] - (tset vim.opt k v))) - (local spellfile (.. (os.getenv :XDG_CONFIG_HOME) :/nvim/spell/en.utf-8.add)) (local opts {;; creates a backup file @@ -85,11 +81,13 @@ :guifont "monospace:h17" :splitkeep :screen}) +(each [k v (pairs opts)] + (tset vim.opt k v)) + ;; Move to new line when reaching the beginning or end. (vim.opt.whichwrap:append "<,>,[,],h,l") (vim.opt.shortmess:append {:C true}) -(setup opts) (set vim.g.mapleader " ") (set vim.g.maplocalleader " ") (set vim.g.markdown_recommended_style 0) -- cgit v1.2.3-70-g09d2