Skip to content

Commit

Permalink
feat: add daedalus-language-server support
Browse files Browse the repository at this point in the history
Signed-off-by: Marcin Pachur <pm4rcin.dev.net667@silomails.com>
  • Loading branch information
pm4rcin committed Sep 10, 2024
1 parent 6c505d4 commit 47517bd
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions lua/lspconfig/server_configurations/daedalus_ls.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
local util = require 'lspconfig.util'
local bin_name = 'DaedalusLanguageServer'

if vim.fn.has 'win32' == 1 then
bin_name = bin_name + '.exe'
end

local root_files = {
'Gothic.src',
'Camera.src',
'Menu.src',
'Music.src',
'ParticleFX.src',
'SFX.src',
'VisualFX.src',
}

return {
default_config = {
cmd = { bin_name },
filetypes = { 'd' },
root_dir = util.root_pattern(unpack(root_files)),
settings = {
DaedalusLanguageServer = {
loglevel = 'debug',
inlayHints = { constants = true },
numParserThreads = 16,
fileEncoding = 'Windows-1252',
srcFileEncoding = 'Windows-1252',
},
},
},
}

0 comments on commit 47517bd

Please sign in to comment.