File tree 2 files changed +40
-0
lines changed
2 files changed +40
-0
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ _add LSP configurations using serve-d for other editors and PR them here!_
67
67
* [ emacs] ( editor-emacs.md )
68
68
* [ Helix] ( editor-helix.md )
69
69
* [ Nova] ( editor-nova.md )
70
+ * [ Lite-XL] ( editor.lite-xl.md )
70
71
71
72
### Project Layout
72
73
Original file line number Diff line number Diff line change
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
+
You can’t perform that action at this time.
0 commit comments