Skip to content

Commit b55b145

Browse files
authored
Add Lite-XL Editor Guide (#337)
1 parent a5929bb commit b55b145

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ _add LSP configurations using serve-d for other editors and PR them here!_
6767
* [emacs](editor-emacs.md)
6868
* [Helix](editor-helix.md)
6969
* [Nova](editor-nova.md)
70+
* [Lite-XL](editor.lite-xl.md)
7071

7172
### Project Layout
7273

editor-lite-xl.md

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Using serve-d with Lite-XL
2+
---
3+
4+
Requirments:
5+
- lite-xl-lsp Plugin: https://github.com/lite-xl/lite-xl-lsp
6+
7+
Add the following to your user `init.lua` file (Access it quickly with `Core: Open User Module` command):
8+
9+
```lua
10+
local lsp = require "plugins.lsp"
11+
12+
lsp.add_server {
13+
name = "serve-d",
14+
language = "d",
15+
file_patterns = { "%.d$" },
16+
command = { "serve-d" },
17+
incremental_changes = true,
18+
}
19+
```
20+
21+
To add settings, include a table of settings to pass to the LSP:
22+
23+
```lua
24+
local lsp = require "plugins.lsp"
25+
26+
lsp.add_server {
27+
name = "serve-d",
28+
language = "d",
29+
file_patterns = { "%.d$" },
30+
command = { "serve-d" },
31+
incremental_changes = true,
32+
settings = {
33+
d = {
34+
enableAutoComplete = false,
35+
}
36+
}
37+
}
38+
```
39+

0 commit comments

Comments
 (0)