-
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a5929bb
commit b55b145
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Using serve-d with Lite-XL | ||
--- | ||
|
||
Requirments: | ||
- lite-xl-lsp Plugin: https://github.com/lite-xl/lite-xl-lsp | ||
|
||
Add the following to your user `init.lua` file (Access it quickly with `Core: Open User Module` command): | ||
|
||
```lua | ||
local lsp = require "plugins.lsp" | ||
|
||
lsp.add_server { | ||
name = "serve-d", | ||
language = "d", | ||
file_patterns = { "%.d$" }, | ||
command = { "serve-d" }, | ||
incremental_changes = true, | ||
} | ||
``` | ||
|
||
To add settings, include a table of settings to pass to the LSP: | ||
|
||
```lua | ||
local lsp = require "plugins.lsp" | ||
|
||
lsp.add_server { | ||
name = "serve-d", | ||
language = "d", | ||
file_patterns = { "%.d$" }, | ||
command = { "serve-d" }, | ||
incremental_changes = true, | ||
settings = { | ||
d = { | ||
enableAutoComplete = false, | ||
} | ||
} | ||
} | ||
``` | ||
|