From dde2ac7dc2e5687e7eef993dba7cb1018c623b4d Mon Sep 17 00:00:00 2001 From: Sven Cheng Date: Wed, 20 Dec 2023 09:56:24 +0100 Subject: feat: add twig-language-server (#2939) --- .../server_configurations/twig_language_server.lua | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 lua/lspconfig/server_configurations/twig_language_server.lua (limited to 'lua') 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")]], + }, + }, +} -- cgit v1.2.3-70-g09d2