From 1fd0af14d592d612c2aaab7717c04c8806ba3daa Mon Sep 17 00:00:00 2001 From: Elvis Claros Castro Date: Thu, 11 Jul 2024 05:12:18 -0300 Subject: Feat: Todo actulizado --- lua/alpha/lsp/servers/vscode_smarty_langserver.lua | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 lua/alpha/lsp/servers/vscode_smarty_langserver.lua (limited to 'lua/alpha/lsp/servers/vscode_smarty_langserver.lua') 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 -- cgit v1.2.3