add lite-xl (hopefully correctly)

This commit is contained in:
Aditya 2023-02-27 10:50:13 +05:30
parent c023fd7cd9
commit f30bb8736b
14 changed files with 12631 additions and 0 deletions

3
.gitmodules vendored
View file

@ -1,3 +1,6 @@
[submodule "lite-xl/lite-xl-plugins"] [submodule "lite-xl/lite-xl-plugins"]
path = lite-xl/lite-xl-plugins path = lite-xl/lite-xl-plugins
url = https://github.com/lite-xl/lite-xl-plugins url = https://github.com/lite-xl/lite-xl-plugins
[submodule "lite-xl/lite-xl-terminal"]
path = lite-xl/lite-xl-terminal
url = https://github.com/benjcollins/lite-xl-terminal

View file

26
lite-xl/error.txt Normal file
View file

@ -0,0 +1,26 @@
Error: ...e/user/.config/lite-xl/plugins/lite-xl-terminal/init.lua:450: attempt to call a nil value (method 'get_width_subpixel')
stack traceback:
...e/user/.config/lite-xl/plugins/lite-xl-terminal/init.lua:450: in method 'draw'
/opt/lite-xl/data/core/node.lua:592: in function 'core.node.draw'
/opt/lite-xl/data/core/node.lua:32: in function 'core.node.propagate'
/opt/lite-xl/data/core/node.lua:597: in function 'core.node.draw'
/opt/lite-xl/data/core/node.lua:32: in function 'core.node.propagate'
/opt/lite-xl/data/core/node.lua:597: in function 'core.node.draw'
/opt/lite-xl/data/core/node.lua:31: in function 'core.node.propagate'
/opt/lite-xl/data/core/node.lua:597: in function 'core.node.draw'
/opt/lite-xl/data/core/node.lua:32: in function 'core.node.propagate'
/opt/lite-xl/data/core/node.lua:597: in function 'core.node.draw'
... (skipping 3 levels)
/opt/lite-xl/data/plugins/autocomplete.lua:571: in upvalue 'root_view_draw'
/opt/lite-xl/data/plugins/treeview.lua:498: in upvalue 'root_view_draw'
/opt/lite-xl/data/plugins/contextmenu.lua:31: in function 'core.rootview.draw'
/opt/lite-xl/data/core/init.lua:1344: in function 'core.step'
/opt/lite-xl/data/core/init.lua:1388: in upvalue 'core_run'
/home/user/.config/lite-xl/plugins/profiler/init.lua:78: in upvalue 'core_run'
/home/user/.config/lite-xl/plugins/settings.lua:1867: in upvalue 'core_run'
/home/user/.config/lite-xl/plugins/ipc.lua:858: in function 'core.run'
(...tail calls...)
[string "local core..."]:9: in function <[string "local core..."]:2>
[C]: in function 'xpcall'
[string "local core..."]:2: in main chunk

12439
lite-xl/font_cache.lua Normal file

File diff suppressed because it is too large Load diff

77
lite-xl/init.lua Normal file
View file

@ -0,0 +1,77 @@
-- 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.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$",
-- }

@ -0,0 +1 @@
Subproject commit b1eb39caa13df1f225fc6acedcfb6ab60524344e

@ -0,0 +1 @@
Subproject commit be6029971137ccb0f35dee8ff9347d674b70fe21

1
lite-xl/plugins Symbolic link
View file

@ -0,0 +1 @@
lite-xl-plugins/plugins

1
lite-xl/session.lua Normal file
View file

@ -0,0 +1 @@
return {recents={[3]="/home/user/dev",[1]="/home/user",[2]="/home/user/dev/cpp",[4]="/home"}, window={[1]=1920,[2]=954,[3]=0,[4]=66,["n"]=4}, window_mode="maximized", previous_find={}, previous_replace={}}

78
lite-xl/user_settings.lua Normal file
View file

@ -0,0 +1,78 @@
return {
["config"] = {
["always_show_tabs"] = true,
["animate_drag_scroll"] = true,
["borderless"] = false,
["disabled_plugins"] = {
["bigclock"] = true,
["smallclock"] = true,
["statusclock"] = true,
["tabnumbers"] = true,
["unboundedscroll"] = true,
["wordcount"] = true
},
["enabled_plugins"] = {
["custom_caret"] = true,
["datetimestamps"] = true,
["drawwhitespace"] = true,
["minimap"] = true,
["scale"] = false,
["treeview"] = true
},
["font"] = {
["fonts"] = {
[1] = {
["name"] = "Fira Sans Regular",
["path"] = "/opt/lite-xl/data/fonts/FiraSans-Regular.ttf"
},
[2] = {
["name"] = "FiraCode Nerd Font Retina",
["path"] = "/usr/share/fonts/TTF/Fira Code Retina Nerd Font Complete.ttf"
}
},
["options"] = {
["antialiasing"] = "subpixel",
["bold"] = false,
["hinting"] = "slight",
["italic"] = false,
["size"] = 15,
["smoothing"] = false,
["strikethrough"] = false,
["underline"] = false
}
},
["plugins"] = {
["autoreload"] = {
["always_show_nagview"] = true
},
["centerdoc"] = {
["enabled"] = false
},
["drawwhitespace"] = {
["show_trailing_error"] = true
},
["lineguide"] = {
["enabled"] = false
},
["linewrapping"] = {
["enable_by_default"] = true,
["mode"] = "word"
},
["minimap"] = {
["avoid_small_docs"] = true
},
["scale"] = {
["default_scale"] = "autodetect"
},
["scalestatus"] = {
["enabled"] = true
},
["typingspeed"] = {
["enabled"] = false
}
},
["skip_plugins_version"] = true,
["tab_type"] = "hard",
["theme"] = "only_dark"
}
}

1
lite-xl/ws/cpp-1 Normal file
View file

@ -0,0 +1 @@
return { path = "/home/user/dev/cpp", documents = {["active_view"]=1,["views"]={[1]={["active"]=true,["type"]="view",["scroll"]={["to"]={["y"]=0,["x"]=0},["x"]=0,["y"]=0},["module"]="core.emptyview"}},["type"]="leaf"}, directories = {} }

1
lite-xl/ws/dev-1 Normal file
View file

@ -0,0 +1 @@
return { path = "/home/user/dev", documents = {["active_view"]=1,["views"]={[1]={["active"]=true,["type"]="view",["scroll"]={["to"]={["y"]=0,["x"]=0},["x"]=0,["y"]=0},["module"]="core.emptyview"}},["type"]="leaf"}, directories = {} }

1
lite-xl/ws/home-1 Normal file
View file

@ -0,0 +1 @@
return { path = "/home", documents = {["type"]="leaf",["active_view"]=1,["views"]={[1]={["type"]="view",["scroll"]={["y"]=0,["x"]=0,["to"]={["y"]=0,["x"]=0}},["active"]=true,["module"]="core.emptyview"}}}, directories = {} }

1
lite-xl/ws/user-1 Normal file
View file

@ -0,0 +1 @@
return { path = "/home/user", documents = {["views"]={[1]={["module"]="core.emptyview",["active"]=true,["scroll"]={["to"]={["y"]=0,["x"]=0},["y"]=0,["x"]=0},["type"]="view"}},["active_view"]=1,["type"]="leaf"}, directories = {} }