Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Str8Razor authored Feb 24, 2024
1 parent b22610c commit ac7208d
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions lua/lspconfig/server_configurations/delphi_ls.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
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 = [[
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 ac7208d

Please sign in to comment.