summaryrefslogtreecommitdiff
path: root/fnl
diff options
context:
space:
mode:
Diffstat (limited to 'fnl')
-rw-r--r--fnl/settings/options.fnl12
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")