@@ -9,11 +9,11 @@ All plugins can be found at the [plugin repository][lite-xl/lite-xl-plugins].
9
9
10
10
!!! note
11
11
These plugins are contributed by the community.
12
- Support are provided on a voluntary basis.
12
+ Support is provided on a voluntary basis.
13
13
14
14
## Location
15
15
16
- Plugins that come bundled with Lite XL is usually stored in ` DATADIR/plugins ` .
16
+ Plugins that come bundled with Lite XL are stored in ` DATADIR/plugins ` .
17
17
` DATADIR ` is the directory where Lite XL's Lua code is stored.
18
18
19
19
On macOS, ` DATADIR ` is always the application resources directory.
@@ -25,30 +25,19 @@ Otherwise, Lite XL sets `DATADIR` as `(path to lite-xl.exe)/data`.
25
25
User plugins should be installed into ` USERDIR/plugins ` .
26
26
` USERDIR ` is the directory where user configuration is stored.
27
27
28
- ## Plugin managers
28
+ ## Plugin Managers
29
29
30
- Recently, we've standardized various aspects of the plugin repository to allow for plugins manager
31
- such as [ lpm] and [ Miq] to install and manage plugins.
32
-
33
- lpm is a plugin manager more akin to distro package managers such as ` apt ` and ` dnf ` .
34
- It also provides a GUI for installing plugins.
35
- Miq is a declarative plugin manager that allows user to declare plugins
36
- and install/update them all at once.
30
+ [ lpm] is the de-facto plugin manager for Lite XL.
31
+ It is similar to ` apt ` and ` dnf ` which provides a command-line interface to manage plugins.
32
+ [ Miq] is an alternative declarative plugin manager that allow users to declare a list of plugins
33
+ that should be loaded, and install / updates them all at once.
34
+ Both plugin managers operate on [ manifest files] which contains plugin metadata and install instructions.
37
35
38
36
These two plugin managers use vastly different ways of plugin management,
39
- so please consult the main page for each plugin manager for exact instructions.
37
+ so please consult the documentation for each plugin manager for exact instructions.
40
38
41
39
## Installing plugins
42
40
43
- To install a plugin, simply drag the related plugin file into ` USERDIR/plugins ` .
44
-
45
- ??? warning "For plugins that comes in a folder, please consult documentation from the plugins."
46
- Historically, Lite XL does not enforce a specific file structure
47
- for these types of plugins.
48
- Old plugins may not have a ` init.lua ` file, which is used by
49
- Lua to find a plugin.
50
- In this case, you need to follow their install instructions.
51
-
52
41
=== "lpm"
53
42
54
43
To install a plugin with lpm, use `lpm plugin install`.
@@ -81,12 +70,23 @@ To install a plugin, simply drag the related plugin file into `USERDIR/plugins`.
81
70
82
71
Afterwards, you can run the command `miq:install` to install the plugins.
83
72
84
- ## Updating plugins
73
+ === "Manually"
74
+
75
+ To install a plugin manually without using plugin managers such as lpm or Miq,
76
+ you need to locate the `USERDIR` directory in your system.
77
+ This directory is usually located in the following locations:
78
+
79
+ - Linux / Unix-based systems: `~/.config/lite-xl`
80
+ - Winodws: `C:/Users/<username>/.config/lite-xl`
81
+ - macOS: `/Users/<username>/.config/lite-xl`
82
+
83
+ Open `USERDIR` in a file manager / shell of your preference and navigate to the `plugins` folder.
84
+ Copy the plugin file / directory into the `plugins` folder, and restart Lite XL.
85
85
86
- To update a plugin, you'll need to re-download them.
87
- For plugins hosted as separate git repositories, you can simply pull new updates.
86
+ **Different plugins may have different installation instructions.**
87
+ **You must consult the installation instructions for each plugin.**
88
88
89
- If you have a plugin manager installed, updating plugins should be easier.
89
+ ## Updating plugins
90
90
91
91
=== "lpm"
92
92
@@ -100,11 +100,15 @@ If you have a plugin manager installed, updating plugins should be easier.
100
100
101
101
=== "Miq"
102
102
103
- To update plugins with Miq, run " miq:update" .
103
+ To update plugins with Miq, run ` miq:update` in Lite XL .
104
104
105
- ## Uninstalling plugins
105
+ === "Manually"
106
+
107
+ To update a plugin manually, you can download the latest version
108
+ and replace the files in the `USERDIR/plugins`.
109
+ **Do not update plugins installed by lpm or Miq manually.**
106
110
107
- To remove a plugin, simply delete the associated file/directory.
111
+ ## Uninstalling plugins
108
112
109
113
=== "lpm"
110
114
@@ -122,6 +126,11 @@ To remove a plugin, simply delete the associated file/directory.
122
126
123
127
**Uninstalling plugins in Miq is currently not supported.**
124
128
129
+ === "Manually"
130
+
131
+ To uninstall a plugin manually, simply delete the corresponding file / directory
132
+ from `USERDIR/plugins`. **Do not uninstall plugins managed by lpm manually**.
133
+
125
134
## Recommended plugins
126
135
127
136
Here are a list of plugins that most users would want:
@@ -141,8 +150,10 @@ Here are a list of plugins that most users would want:
141
150
| [ lsp] | Language Server support for Lite XL
142
151
| [ lspkind] | Completion menu kind/type icons for Lite XL LSP
143
152
| [ minimap] | Minimap
153
+ | [ search_ui] | Provides a better UI for searching text, based on [ widget] .
144
154
| [ selectionhighlight] | Highlight code that matches the selection
145
155
| [ settings] | Settings GUI for Lite XL (requires the [ widget] plugin)
156
+ | [ terminal] | Integrated terminal in Lite XL.
146
157
| [ widgets] | Widget toolkit for Lite XL. Needed for [ lsp] and [ settings] .
147
158
148
159
## Feature / Plugin Requests
@@ -151,7 +162,7 @@ If no plugins provide the features you wanted, you can request them in the [issu
151
162
Plugin developers occasionally browse the issue tracker for requests and implement them.
152
163
153
164
Alternatively, you can take the opportunity to implement the feature yourself,
154
- based on various [ documentation] and existing plugins.
165
+ based on our [ documentation] and existing plugins.
155
166
156
167
157
168
[ treeview ] : https://github.com/lite-xl/lite-xl/blob/master/data/plugins/treeview.lua
@@ -160,6 +171,7 @@ based on various [documentation] and existing plugins.
160
171
[ lite-xl/lite-xl-plugins ] : https://github.com/lite-xl/lite-xl-plugins
161
172
[ lpm ] : https://github.com/lite-xl/lite-xl-plugin-manager
162
173
[ Miq ] : https://github.com/TorchedSammy/Miq
174
+ [ manifest files ] : https://github.com/lite-xl/lite-xl-plugin-manager/blob/master/SPEC.md
163
175
[ align_carets ] : https://github.com/lite-xl/lite-xl-plugins/blob/master/plugins/align_carets.lua?raw=1
164
176
[ autoinsert ] : https://github.com/lite-xl/lite-xl-plugins/blob/master/plugins/autoinsert.lua?raw=1
165
177
[ autosave ] : https://github.com/lite-xl/lite-xl-plugins/blob/master/plugins/autosave.lua?raw=1
@@ -173,8 +185,10 @@ based on various [documentation] and existing plugins.
173
185
[ lsp ] : https://github.com/lite-xl/lite-xl-lsp
174
186
[ lspkind ] : https://github.com/TorchedSammy/lite-xl-lspkind
175
187
[ minimap ] : https://github.com/lite-xl/lite-xl-plugins/blob/master/plugins/minimap.lua?raw=1
188
+ [ search_ui ] : https://github.com/lite-xl/lite-xl-plugins/blob/master/plugins/search_ui.lua?raw=1
176
189
[ selectionhighlight ] : https://github.com/lite-xl/lite-xl-plugins/blob/master/plugins/selectionhighlight.lua?raw=1
177
190
[ settings ] : https://github.com/lite-xl/lite-xl-plugins/blob/master/plugins/settings.lua?raw=1
191
+ [ terminal ] : https://github.com/adamharrison/lite-xl-terminal.git
178
192
[ widgets ] : https://github.com/lite-xl/lite-xl-widgets
179
193
[ issue tracker ] : https://github.com/lite-xl/lite-xl-plugins/issues
180
194
[ documentation ] : ../developer-guide/introduction.md
0 commit comments