summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2023-09-23 23:02:07 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2023-09-23 23:02:07 +0200
commitc7171616d3e76700f68f72363020866faef0ff52 (patch)
tree8217e5a45d9d1c3813c2bde839dc1a9d3c5cc856
parent9b6e8c56fe1169dead74949b66c1cf7ac20ad137 (diff)
Refactor options
-rw-r--r--fnl/settings/options.fnl8
1 files changed, 3 insertions, 5 deletions
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)