Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add daedalus-language-server support #3259

Merged
merged 2 commits into from
Sep 11, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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'
pm4rcin marked this conversation as resolved.
Show resolved Hide resolved

if vim.fn.has 'win32' == 1 then
bin_name = bin_name + '.exe'
end
pm4rcin marked this conversation as resolved.
Show resolved Hide resolved

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',
},
},
},
}
Loading