aboutsummaryrefslogtreecommitdiffstats
path: root/lua/pi/lsp/servers/vscode_smarty_langserver.lua
blob: bf2908284d9988d3be033e3be9981b7d0ed53946 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
local lsp_attach = require "pi.lsp.attach"
local lsp_flags = require "pi.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