diff options
Diffstat (limited to 'lua/alpha/lsp/servers/vscode_smarty_langserver.lua')
| -rw-r--r-- | lua/alpha/lsp/servers/vscode_smarty_langserver.lua | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/lua/alpha/lsp/servers/vscode_smarty_langserver.lua b/lua/alpha/lsp/servers/vscode_smarty_langserver.lua new file mode 100644 index 0000000..e404698 --- /dev/null +++ b/lua/alpha/lsp/servers/vscode_smarty_langserver.lua @@ -0,0 +1,25 @@ +local lsp_attach = require "alpha.lsp.attach" +local lsp_flags = require "alpha.lsp.flags" + +return function(ops) + return vim.tbl_extend("force", { + on_attach = lsp_attach, + flags = lsp_flags, + settings = { + css = { + validate = true + }, + smarty = { + pluginDirs = {} + }, + ["smarty_ls"] = { + checkOnSave = { + overrideCommand = { + "smarty-language-server", + "--stdio", + }, + }, + }, + }, + }, ops) +end |