summaryrefslogtreecommitdiff
path: root/lite-xl/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lite-xl/init.lua')
-rw-r--r--lite-xl/init.lua54
1 files changed, 54 insertions, 0 deletions
diff --git a/lite-xl/init.lua b/lite-xl/init.lua
new file mode 100644
index 0000000..0dd42a9
--- /dev/null
+++ b/lite-xl/init.lua
@@ -0,0 +1,54 @@
+-- put user settings here
+-- this module will be loaded after everything else when the application starts
+-- it will be automatically reloaded when saved
+
+local core = require "core"
+local keymap = require "core.keymap"
+local config = require "core.config"
+local style = require "core.style"
+
+------------------------------ Themes ----------------------------------------
+-- light theme:
+core.reload_module("colors.nord")
+style.code_font = renderer.font.load(DATADIR .. "/fonts/CascadiaMono.ttf", 14 * SCALE)
+style.font = renderer.font.load(DATADIR .. "/fonts/HackNF.ttf", 13 * SCALE)
+config.trimwhitespace = true
+config.ignore_files = { "node_modules" }
+-- core.reload_module("colors.summer")
+
+--------------------------- Key bindings -------------------------------------
+
+-- key binding:
+-- keymap.add { ["ctrl+escape"] = "core:quit" }
+
+
+------------------------------- Fonts ----------------------------------------
+
+-- customize fonts:
+-- style.font = renderer.font.load(DATADIR .. "/fonts/font.ttf", 13 * SCALE)
+-- style.code_font = renderer.font.load(DATADIR .. "/fonts/monospace.ttf", 12 * SCALE)
+--
+-- font names used by lite:
+-- style.font : user interface
+-- style.big_font : big text in welcome screen
+-- style.icon_font : icons
+-- style.icon_big_font : toolbar icons
+-- style.code_font : code
+--
+-- the function to load the font accept a 3rd optional argument like:
+--
+-- {antialiasing="grayscale", hinting="full"}
+--
+-- possible values are:
+-- antialiasing: grayscale, subpixel
+-- hinting: none, slight, full
+
+------------------------------ Plugins ----------------------------------------
+
+-- enable or disable plugin loading setting config entries:
+
+-- enable trimwhitespace, otherwise it is disable by default:
+-- config.trimwhitespace = true
+--
+-- disable detectindent, otherwise it is enabled by default
+-- config.detectindent = false