Skip to content

Commit

Permalink
formatted delphi_ls.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
Str8Razor authored Feb 25, 2024
1 parent ac7208d commit ab80186
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions lua/lspconfig/server_configurations/delphi_ls.lua
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
local util = require 'lspconfig.util'
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 ab80186

Please sign in to comment.