-
I'm trying to get completion in Is this possible? Thank you 🙇♂️ |
Beta Was this translation helpful? Give feedback.
Answered by
sitedyno
Mar 19, 2024
Replies: 1 comment
-
I've learned from vim.lsp.ClientConfig there is a field Something like the following gets completion working in templates: require('lspconfig')[phpactor].setup {
filetypes = {
'php',
'php.html',
},
get_language_id = function(_, filetype)
if filetype == 'php.html' then
return 'php'
else
return filetype
end
end,
},
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
sitedyno
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've learned from vim.lsp.ClientConfig there is a field
get_language_id
that you can set to a function to return thefiletype
. I guess the spec goes with Microsoft's terminology...Something like the following gets completion working in templates: