diff options
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/twig_language_server.lua | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lua/lspconfig/server_configurations/twig_language_server.lua b/lua/lspconfig/server_configurations/twig_language_server.lua new file mode 100644 index 00000000..f73a9f89 --- /dev/null +++ b/lua/lspconfig/server_configurations/twig_language_server.lua @@ -0,0 +1,21 @@ +local util = require 'lspconfig.util' + +return { + default_config = { + cmd = { 'twig-language-server', '--stdio' }, + filetypes = { 'twig' }, + root_dir = util.root_pattern('composer.json', '.git'), + single_file_support = true, + }, + docs = { + description = [[ +https://github.com/moetelo/twiggy + +Can be installed via Mason, which uses the server bundled with the VSCode extension. +``` +]], + default_config = { + root_dir = [[root_pattern("composer.json", ".git")]], + }, + }, +} |
