You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's pretty simplistic to make a configuration, but I'm not familiar with dm-langserver at all and don't know Rust so I can't properly make it. I don't know the proper capabilities. If a maintainer wants to pick this up, here's the barebones functionality server config I made:
localutil=require'lspconfig.util'localbin_name='dm-langserver'localcmd= { bin_name }
ifvim.fn.has'win32' ==1thencmd= { 'cmd.exe', '/C', bin_name }
endreturn {
default_config= {
cmd=cmd,
filetypes= { 'dm', 'dme' },
root_dir=util.root_pattern('SpacemanDMM.toml', '.git'),
},
docs= {
description=[[https://github.com/SpaceManiac/SpacemanDMM/tree/master/crates/dm-langserverLanguage Server for BYOND DreamMaker code`dm-langserver` can be installed via cargo:cargo install --git https://github.com/SpaceManiac/SpacemanDMM.git dm-langserver]],
},
}
In addition, it looks like DM files require a filetype autocmd for the LSP to work properly.
vim.cmd [[ autocmd BufNewFile,BufRead *.dm,*.dme set filetype=dm ]]
The text was updated successfully, but these errors were encountered:
It might also be worth making syntax highlighting for neovim if anyone is interested, since the only syntax highlighting right now is from 2016 and kind of sucks in comparison to vscode langclient syntax highlighting https://github.com/ccraciun/vim-dreammaker
https://github.com/neovim/nvim-lspconfig
It's pretty simplistic to make a configuration, but I'm not familiar with dm-langserver at all and don't know Rust so I can't properly make it. I don't know the proper capabilities. If a maintainer wants to pick this up, here's the barebones functionality server config I made:
In addition, it looks like DM files require a filetype autocmd for the LSP to work properly.
vim.cmd [[ autocmd BufNewFile,BufRead *.dm,*.dme set filetype=dm ]]
The text was updated successfully, but these errors were encountered: