-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update delphi_ls.lua, formatting replace tab with spaces
feat: add delphi lsp support
- Loading branch information
Showing
1 changed file
with
15 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
local util = require("lspconfig.util") | ||
|
||
return { | ||
default_config = { | ||
cmd = { "DelphiLSP.exe" }, | ||
filetypes = { "pascal" }, | ||
root_dir = util.root_pattern("*.dpr"), | ||
single_file_support = true, | ||
settings = { | ||
--look for *.delphilsp.json - Delphi lsp config file | ||
settingsFile = vim.fs.find(function(name) | ||
return name:match(".*%.delphilsp.json$") | ||
end, { limit = math.huge, type = "file", upward = true })[1], | ||
}, | ||
}, | ||
docs = { | ||
description = [[ | ||
default_config = { | ||
cmd = { "DelphiLSP.exe" }, | ||
filetypes = { "pascal" }, | ||
root_dir = util.root_pattern("*.dpr"), | ||
single_file_support = true, | ||
settings = { | ||
--look for *.delphilsp.json - Delphi lsp config file | ||
settingsFile = vim.fs.find(function(name) | ||
return name:match(".*%.delphilsp.json$") | ||
end, { limit = math.huge, type = "file", upward = true })[1], | ||
}, | ||
}, | ||
docs = { | ||
description = [[ | ||
Language server for Delphi from Embarcadero. | ||
https://marketplace.visualstudio.com/items?itemName=EmbarcaderoTechnologies.delphilsp | ||
Note, the '*.delphilsp.json' file is required, more details at: | ||
https://docwiki.embarcadero.com/RADStudio/Alexandria/en/Using_DelphiLSP_Code_Insight_with_Other_Editors | ||
]], | ||
}, | ||
}, | ||
} |