aboutsummaryrefslogtreecommitdiff
path: root/fnl/defaults.fnl
diff options
context:
space:
mode:
authoramelia squires <[email protected]>2024-10-22 23:40:30 -0500
committeramelia squires <[email protected]>2024-10-22 23:40:30 -0500
commit0b7b1684d87b7d0b01b5645713b413e317699fd0 (patch)
tree70d54faa4536e97894754e63061f0d2fad99079c /fnl/defaults.fnl
readme
Diffstat (limited to 'fnl/defaults.fnl')
-rw-r--r--fnl/defaults.fnl8
1 files changed, 8 insertions, 0 deletions
diff --git a/fnl/defaults.fnl b/fnl/defaults.fnl
new file mode 100644
index 0000000..aa75f3a
--- /dev/null
+++ b/fnl/defaults.fnl
@@ -0,0 +1,8 @@
+(lambda default [key value ?force]
+ (when (or (= (. _G.settings key) nil) ?force) (tset _G.settings key value)))
+
+(lambda defaults [force]
+ (default :colorscheme :oxocarbon force)
+ (default :lsp "lua_ls,clangd,zls,csharp_ls,ts_ls" force))
+
+(defaults false)