aboutsummaryrefslogtreecommitdiff
path: root/lite-xl
diff options
context:
space:
mode:
Diffstat (limited to 'lite-xl')
-rw-r--r--lite-xl/init.lua94
-rwxr-xr-xlite-xl/install.sh71
2 files changed, 165 insertions, 0 deletions
diff --git a/lite-xl/init.lua b/lite-xl/init.lua
new file mode 100644
index 0000000..d077fef
--- /dev/null
+++ b/lite-xl/init.lua
@@ -0,0 +1,94 @@
+local core = require "core"
+local keymap = require "core.keymap"
+local config = require "core.config"
+local style = require "core.style"
+
+config.ignore_files = {
+ "^%.git/"
+}
+
+
+
+
+
+
+
+local fontconfig = require "plugins.fontconfig"
+fontconfig.use {
+ font = { name = 'sans-serif', size = 12 * SCALE },
+ code_font = { name = 'monospace', size = 12 * SCALE },
+}
+
+
+config.plugins.nerdicons.use_default_dir_icons = true
+config.plugins.spellcheck.enabled = false
+
+------------------------------ Themes ----------------------------------------
+
+-- light theme:
+-- core.reload_module("colors.summer")
+
+--------------------------- Key bindings -------------------------------------
+
+-- key binding:
+-- keymap.add { ["ctrl+escape"] = "core:quit" }
+
+-- pass 'true' for second parameter to overwrite an existing binding
+-- keymap.add({ ["ctrl+pageup"] = "root:switch-to-previous-tab" }, true)
+-- keymap.add({ ["ctrl+pagedown"] = "root:switch-to-next-tab" }, true)
+
+------------------------------- Fonts ----------------------------------------
+
+-- customize fonts:
+-- style.font = renderer.font.load(DATADIR .. "/fonts/FiraSans-Regular.ttf", 14 * SCALE)
+-- style.code_font = renderer.font.load(DATADIR .. "/fonts/JetBrainsMono-Regular.ttf", 14 * SCALE)
+--
+-- DATADIR is the location of the installed Lite XL Lua code, default color
+-- schemes and fonts.
+-- USERDIR is the location of the Lite XL configuration directory.
+--
+-- 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", bold=true, italic=true, underline=true, smoothing=true, strikethrough=true}
+--
+-- possible values are:
+-- antialiasing: grayscale, subpixel
+-- hinting: none, slight, full
+-- bold: true, false
+-- italic: true, false
+-- underline: true, false
+-- smoothing: true, false
+-- strikethrough: true, false
+
+------------------------------ Plugins ----------------------------------------
+
+-- enable or disable plugin loading setting config entries:
+
+-- enable plugins.trimwhitespace, otherwise it is disabled by default:
+-- config.plugins.trimwhitespace = true
+--
+-- disable detectindent, otherwise it is enabled by default
+-- config.plugins.detectindent = false
+
+---------------------------- Miscellaneous -------------------------------------
+
+-- modify list of files to ignore when indexing the project:
+-- config.ignore_files = {
+-- -- folders
+-- "^%.svn/", "^%.git/", "^%.hg/", "^CVS/", "^%.Trash/", "^%.Trash%-.*/",
+-- "^node_modules/", "^%.cache/", "^__pycache__/",
+-- -- files
+-- "%.pyc$", "%.pyo$", "%.exe$", "%.dll$", "%.obj$", "%.o$",
+-- "%.a$", "%.lib$", "%.so$", "%.dylib$", "%.ncb$", "%.sdf$",
+-- "%.suo$", "%.pdb$", "%.idb$", "%.class$", "%.psd$", "%.db$",
+-- "^desktop%.ini$", "^%.DS_Store$", "^%.directory$",
+-- }
+
+
diff --git a/lite-xl/install.sh b/lite-xl/install.sh
new file mode 100755
index 0000000..f8530ac
--- /dev/null
+++ b/lite-xl/install.sh
@@ -0,0 +1,71 @@
+#!/bin/sh
+
+cd ~/.config/lite-xl
+
+mkdir -p libraries
+mkdir -p plugins
+
+# gitdiff_highlight
+[ ! -d plugins/gitdiff_highlight ] && \
+ git clone https://github.com/vincens2005/lite-xl-gitdiff-highlight plugins/gitdiff_highlight || \
+ git -C plugins/gitdiff_highlight pull
+
+# lintplus
+[ ! -d plugins/lintplus ] && \
+ git clone https://github.com/liquidev/lintplus plugins/lintplus || \
+ git -C plugins/lintplus pull
+
+# lsp
+[ ! -d plugins/lsp ] && \
+ git clone https://github.com/lite-xl/lite-xl-lsp plugins/lsp || \
+ git -C plugins/lsp pull
+[ ! -d libraries/widget ] && \
+ git clone https://github.com/lite-xl/lite-xl-widgets libraries/widget || \
+ git -C libraries/widget pull
+[ ! -d plugins/lintplus ] && \
+ git clone https://github.com/liquidev/lintplus plugins/lintplus || \
+ git -C plugins/lintplus pull
+curl -L -o plugins/snippets.lua https://raw.githubusercontent.com/vqns/lite-xl-snippets/main/snippets.lua
+curl -L -o plugins/lsp_snippets.lua https://raw.githubusercontent.com/vqns/lite-xl-snippets/main/lsp_snippets.lua
+
+# scm
+[ ! -d plugins/scm ] && \
+ git clone https://github.com/lite-xl/lite-xl-scm plugins/scm || \
+ git -C plugins/scm pull
+curl -L -o plugins/language_diff.lua https://raw.githubusercontent.com/lite-xl/lite-xl-plugins/master/plugins/language_diff.lua
+
+# ephemeral_tabs
+curl -L -o plugins/ephemeral_tabs.lua https://raw.githubusercontent.com/lite-xl/lite-xl-plugins/master/plugins/ephemeral_tabs.lua
+
+# fontconfig
+curl -L -o plugins/fontconfig.lua https://raw.githubusercontent.com/lite-xl/lite-xl-plugins/master/plugins/fontconfig.lua
+
+# gitstatus
+curl -L -o plugins/indentguide.lua https://raw.githubusercontent.com/lite-xl/lite-xl-plugins/master/plugins/gitstatus.lua
+
+# indentguide
+curl -L -o plugins/indentguide.lua https://raw.githubusercontent.com/lite-xl/lite-xl-plugins/master/plugins/indentguide.lua
+
+# minimap
+curl -L -o plugins/minimap.lua https://raw.githubusercontent.com/lite-xl/lite-xl-plugins/master/plugins/minimap.lua
+
+# nerdicons
+curl -L -o plugins/nerdicons.lua https://raw.githubusercontent.com/lite-xl/lite-xl-plugins/master/plugins/nerdicons.lua
+
+# scalestatus
+curl -L -o plugins/scalestatus.lua https://raw.githubusercontent.com/lite-xl/lite-xl-plugins/master/plugins/scalestatus.lua
+
+# search_ui
+curl -L -o plugins/search_ui.lua https://raw.githubusercontent.com/lite-xl/lite-xl-plugins/master/plugins/search_ui.lua
+
+# select_colorscheme
+curl -L -o plugins/select_colorscheme https://raw.githubusercontent.com/lite-xl/lite-xl-plugins/master/plugins/select_colorscheme.lua
+
+# selectionhighlight
+curl -L -o plugins/selectionhighlight.lua https://raw.githubusercontent.com/lite-xl/lite-xl-plugins/master/plugins/selectionhighlight.lua
+
+# sort
+curl -L -o plugins/sort.lua https://raw.githubusercontent.com/lite-xl/lite-xl-plugins/master/plugins/sort.lua
+
+# spellcheck
+curl -L -o plugins/spellcheck.lua https://raw.githubusercontent.com/lite-xl/lite-xl-plugins/master/plugins/spellcheck.lua