diff options
author | aktersnurra <grydholm@kth.se> | 2022-04-24 20:10:06 +0200 |
---|---|---|
committer | aktersnurra <grydholm@kth.se> | 2022-04-24 20:10:06 +0200 |
commit | a0db1140e12c6254e4f25caa703e46de5f1ef6b3 (patch) | |
tree | d8063a22733358da899d77c3c39fe596573e91b3 /fnl/settings | |
parent | 6b627824e5325f3f5ca8a93a936acbaf5251dd5f (diff) |
refactor(options): move apply fn to top
Diffstat (limited to 'fnl/settings')
-rw-r--r-- | fnl/settings/options.fnl | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/fnl/settings/options.fnl b/fnl/settings/options.fnl index 514e2ae..bf02dda 100644 --- a/fnl/settings/options.fnl +++ b/fnl/settings/options.fnl @@ -1,5 +1,10 @@ ;; Sets options in neovim -(module settings.options {autoload {nvim aniseed.nvim}}) +(module settings.options + {autoload {nvim aniseed.nvim}}) + +(defn- apply-opts [opts] + (each [k v (pairs opts)] + (tset vim.opt k v))) (def- opts {;; creates a backup file @@ -73,11 +78,8 @@ ;; the font used in graphical neovim applications :guifont "monospace:h17"}) -(defn- apply-opts [] - (each [k v (pairs opts)] - (tset vim.opt k v))) +(apply-opts opts) -(apply-opts) (vim.cmd "set whichwrap+=<,>,[,],h,l") (vim.cmd "set iskeyword+=-") (vim.cmd "set formatoptions-=cro") |