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):
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:
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,
}
}
}