Skip to content

Latest commit

 

History

History
39 lines (31 loc) · 737 Bytes

editor-lite-xl.md

File metadata and controls

39 lines (31 loc) · 737 Bytes

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

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