Skip to content

Commit

Permalink
Update delphi_ls.lua, formatting replace tab with spaces
Browse files Browse the repository at this point in the history
feat: add delphi lsp support
  • Loading branch information
Str8Razor committed Feb 25, 2024
1 parent bc77ec2 commit 547d599
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions lua/lspconfig/server_configurations/delphi_ls.lua
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
]],
},
},
}

0 comments on commit 547d599

Please sign in to comment.