Skip to content

Commit 2cf45a9

Browse files
committed
update links, fix typos, style improvements
1 parent b7e9146 commit 2cf45a9

File tree

4 files changed

+63
-52
lines changed

4 files changed

+63
-52
lines changed

docs/about/contributors.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description: A list of people that contributed to Lite XL.
66

77
This is a list of people with more than 2 commits to Lite XL.
88
The actual number of contributors is far, far greater than what we're able to
9-
list here, including plugins, themes, LPM and bug hunters and beta testers.
9+
list here, including plugins, themes, lpm, bug hunters and beta testers.
1010
We deeply appreciate the effort you have put into making Lite XL better.
1111

1212
You can get the contributors for a particular release on the [release page].

docs/about/faq.md

+18-21
Original file line numberDiff line numberDiff line change
@@ -73,35 +73,32 @@ keymap.add({ ["ctrl+escape"] = {} }, true)
7373

7474
You can search for commands in the command palette.
7575

76-
For each command, replace the spaces on the right side with dashes.
76+
For each command, replace the spaces with dashes.
7777

7878
For example: `Core: Find Command``core:find-command`
7979

8080
## What version of Lua does Lite XL use?
8181

82-
Lua 5.4 since v2.1.0 and Lua 5.4.2 before v2.1.0.
83-
There's some activity around using LuaJIT instead (which is 5.1)
84-
but it can provide some Lua 5.2 compatibility.
85-
[Ongoing work][master-luajit-branch] is being done to
86-
maintain compatibility between LuaJIT and Lua 5.4,
87-
but this is not officially supported.
82+
Lua 5.4, since [v2.1.0], released in late 2022.
83+
84+
Lite XL used Lua 5.2 before [v2.1.0].
8885

8986
## Vim mode?
9087

9188
You need to [vibe].
9289

9390

94-
[lite]: https://github.com/rxi/lite
95-
[rxi]: https://github.com/rxi/lite
96-
[FreeType]: https://freetype.org/
97-
[AGG]: https://agg.sourceforge.net/antigrain.com/index.html
98-
[rejected]: https://github.com/rxi/lite/issues/145#issuecomment-643636679
99-
[plugin repository]: https://github.com/lite-xl/lite-xl-plugins
100-
[LPM]: https://github.com/lite-xl/lite-xl-plugin-manager
101-
[here]: ../user-guide/managing-plugins.md
102-
[v2.1.0]: https://github.com/lite-xl/lite-xl/releases/tag/v2.1.0
103-
[LSP]: https://github.com/lite-xl/lite-xl-lsp
104-
[lite-xl-terminal]: https://github.com/adamharrison/lite-xl-terminal
105-
[autowrap]: https://github.com/lite-xl/lite-xl-plugins/blob/master/plugins/autowrap.lua?raw=1
106-
[master-luajit-branch]: https://github.com/lite-xl/lite-xl/pull/880
107-
[vibe]: https://github.com/eugenpt/lite-xl-vibe
91+
[lite]: https://github.com/rxi/lite
92+
[rxi]: https://github.com/rxi/lite
93+
[FreeType]: https://freetype.org/
94+
[AGG]: https://agg.sourceforge.net/antigrain.com/index.html
95+
[rejected]: https://github.com/rxi/lite/issues/145#issuecomment-643636679
96+
[plugin repository]: https://github.com/lite-xl/lite-xl-plugins
97+
[LPM]: https://github.com/lite-xl/lite-xl-plugin-manager
98+
[here]: ../user-guide/managing-plugins.md
99+
[v2.1.0]: https://github.com/lite-xl/lite-xl/releases/tag/v2.1.0
100+
[LSP]: https://github.com/lite-xl/lite-xl-lsp
101+
[lite-xl-terminal]: https://github.com/adamharrison/lite-xl-terminal
102+
[autowrap]: https://github.com/lite-xl/lite-xl-plugins/blob/master/plugins/autowrap.lua?raw=1
103+
[Pragtical]: https://pragtical.dev
104+
[vibe]: https://github.com/eugenpt/lite-xl-vibe

docs/user-guide/lsp.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ When installing the plugin manually, you must also install these plugins as well
1919

2020
=== "lpm"
2121

22-
To install LPM via the command line, run:
22+
To install a plugin with lpm via the command line, run:
2323
```sh
2424
$ lpm plugin install lsp
2525
```
@@ -278,4 +278,4 @@ without Python at all.
278278
[jdt.ls]: https://github.com/eclipse-jdtls/eclipse.jdt.ls
279279
[win-execution-alias]: ../assets/user-guide/win-execution-alias.png
280280
[Python]: https://www.python.org/
281-
[jdtls-cmdline]: https://github.com/eclipse-jdtls/eclipse.jdt.ls?tab=readme-ov-file#running-from-the-command-line
281+
[jdtls-cmdline]: https://github.com/eclipse-jdtls/eclipse.jdt.ls?tab=readme-ov-file#running-from-the-command-line

docs/user-guide/managing-plugins.md

+42-28
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ All plugins can be found at the [plugin repository][lite-xl/lite-xl-plugins].
99

1010
!!! note
1111
These plugins are contributed by the community.
12-
Support are provided on a voluntary basis.
12+
Support is provided on a voluntary basis.
1313

1414
## Location
1515

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`.
1717
`DATADIR` is the directory where Lite XL's Lua code is stored.
1818

1919
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`.
2525
User plugins should be installed into `USERDIR/plugins`.
2626
`USERDIR` is the directory where user configuration is stored.
2727

28-
## Plugin managers
28+
## Plugin Managers
2929

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.
3735

3836
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.
4038

4139
## Installing plugins
4240

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-
5241
=== "lpm"
5342

5443
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`.
8170

8271
Afterwards, you can run the command `miq:install` to install the plugins.
8372

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.
8585

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.**
8888

89-
If you have a plugin manager installed, updating plugins should be easier.
89+
## Updating plugins
9090

9191
=== "lpm"
9292

@@ -100,11 +100,15 @@ If you have a plugin manager installed, updating plugins should be easier.
100100

101101
=== "Miq"
102102

103-
To update plugins with Miq, run "miq:update".
103+
To update plugins with Miq, run `miq:update` in Lite XL.
104104

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.**
106110

107-
To remove a plugin, simply delete the associated file/directory.
111+
## Uninstalling plugins
108112

109113
=== "lpm"
110114

@@ -122,6 +126,11 @@ To remove a plugin, simply delete the associated file/directory.
122126

123127
**Uninstalling plugins in Miq is currently not supported.**
124128

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+
125134
## Recommended plugins
126135

127136
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:
141150
| [lsp] | Language Server support for Lite XL
142151
| [lspkind] | Completion menu kind/type icons for Lite XL LSP
143152
| [minimap] | Minimap
153+
| [search_ui] | Provides a better UI for searching text, based on [widget].
144154
| [selectionhighlight] | Highlight code that matches the selection
145155
| [settings] | Settings GUI for Lite XL (requires the [widget] plugin)
156+
| [terminal] | Integrated terminal in Lite XL.
146157
| [widgets] | Widget toolkit for Lite XL. Needed for [lsp] and [settings].
147158

148159
## Feature / Plugin Requests
@@ -151,7 +162,7 @@ If no plugins provide the features you wanted, you can request them in the [issu
151162
Plugin developers occasionally browse the issue tracker for requests and implement them.
152163

153164
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.
155166

156167

157168
[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.
160171
[lite-xl/lite-xl-plugins]: https://github.com/lite-xl/lite-xl-plugins
161172
[lpm]: https://github.com/lite-xl/lite-xl-plugin-manager
162173
[Miq]: https://github.com/TorchedSammy/Miq
174+
[manifest files]: https://github.com/lite-xl/lite-xl-plugin-manager/blob/master/SPEC.md
163175
[align_carets]: https://github.com/lite-xl/lite-xl-plugins/blob/master/plugins/align_carets.lua?raw=1
164176
[autoinsert]: https://github.com/lite-xl/lite-xl-plugins/blob/master/plugins/autoinsert.lua?raw=1
165177
[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.
173185
[lsp]: https://github.com/lite-xl/lite-xl-lsp
174186
[lspkind]: https://github.com/TorchedSammy/lite-xl-lspkind
175187
[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
176189
[selectionhighlight]: https://github.com/lite-xl/lite-xl-plugins/blob/master/plugins/selectionhighlight.lua?raw=1
177190
[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
178192
[widgets]: https://github.com/lite-xl/lite-xl-widgets
179193
[issue tracker]: https://github.com/lite-xl/lite-xl-plugins/issues
180194
[documentation]: ../developer-guide/introduction.md

0 commit comments

Comments
 (0)